Commit b8cbcb65 by Ivan

version 1.0 cambiado el orden de servicios

parent 58d35f71
......@@ -11,6 +11,34 @@ volumes:
odoo-conf:
driver: local
services:
db-data:
image: postgres:9.4
environment:
PGDATA: /var/lib/postgresql/pgdata
POSTGRES_USER: odoo
POSTGRES_PASSWORD: P4ssw0rD
stdin_open: true
volumes:
- odoo-pg-data:/var/lib/postgresql
tty: true
command:
- /bin/true
labels:
io.rancher.container.pull_image: always
io.rancher.container.start_once: 'true'
db:
image: postgres:9.4
environment:
PGDATA: /var/lib/postgresql/pgdata
POSTGRES_USER: odoo
POSTGRES_PASSWORD: P4ssw0rD
stdin_open: true
tty: true
volumes_from:
- db-data
labels:
io.rancher.container.pull_image: always
io.rancher.sidekicks: db-data
web:
image: odoo:latest
environment:
......@@ -40,31 +68,3 @@ services:
labels:
io.rancher.container.pull_image: always
io.rancher.container.start_once: 'true'
\ No newline at end of file
db-data:
image: postgres:9.4
environment:
PGDATA: /var/lib/postgresql/pgdata
POSTGRES_USER: odoo
POSTGRES_PASSWORD: P4ssw0rD
stdin_open: true
volumes:
- odoo-pg-data:/var/lib/postgresql
tty: true
command:
- /bin/true
labels:
io.rancher.container.pull_image: always
io.rancher.container.start_once: 'true'
db:
image: postgres:9.4
environment:
PGDATA: /var/lib/postgresql/pgdata
POSTGRES_USER: odoo
POSTGRES_PASSWORD: P4ssw0rD
stdin_open: true
tty: true
volumes_from:
- db-data
labels:
io.rancher.container.pull_image: always
io.rancher.sidekicks: db-data
......@@ -7,17 +7,15 @@
odoo:
version: '2'
services:
web:
db-data:
scale: 1
start_on_create: true
script:
db:
scale: 1
start_on_create: true
db-data:
web:
scale: 1
start_on_create: true
db:
script:
scale: 1
start_on_create: true
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment