Commit b8cbcb65 by Ivan

version 1.0 cambiado el orden de servicios

parent 58d35f71
...@@ -11,6 +11,34 @@ volumes: ...@@ -11,6 +11,34 @@ volumes:
odoo-conf: odoo-conf:
driver: local driver: local
services: 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: web:
image: odoo:latest image: odoo:latest
environment: environment:
...@@ -40,31 +68,3 @@ services: ...@@ -40,31 +68,3 @@ services:
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
io.rancher.container.start_once: 'true' 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 @@ ...@@ -7,17 +7,15 @@
odoo: odoo:
version: '2' version: '2'
services: services:
web: db-data:
scale: 1 scale: 1
start_on_create: true start_on_create: true
script: db:
scale: 1 scale: 1
start_on_create: true start_on_create: true
db-data: web:
scale: 1 scale: 1
start_on_create: true start_on_create: true
db: script:
scale: 1 scale: 1
start_on_create: true 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