Commit b8cbcb65 by Ivan

version 1.0 cambiado el orden de servicios

parent 58d35f71
...@@ -11,35 +11,6 @@ volumes: ...@@ -11,35 +11,6 @@ volumes:
odoo-conf: odoo-conf:
driver: local driver: local
services: services:
web:
image: odoo:latest
environment:
PGHOST: db
PGPASSWORD: P4ssw0rD
PGUSER: odoo
stdin_open: true
volumes:
- odoo-datadir:/var/lib/odoo
- odoo-extra-addons:/mnt/extra-addons
- odoo-tools:/usr/lib/python2.7/dist-packages/odoo
- odoo-conf:/etc/odoo
tty: true
links:
- db:db
labels:
io.rancher.container.pull_image: always
io.rancher.sidekicks: script
script:
image: dvalue/odoo-script
stdin_open: true
tty: true
links:
- db:db
volumes_from:
- web
labels:
io.rancher.container.pull_image: always
io.rancher.container.start_once: 'true'
db-data: db-data:
image: postgres:9.4 image: postgres:9.4
environment: environment:
...@@ -68,3 +39,32 @@ services: ...@@ -68,3 +39,32 @@ services:
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
io.rancher.sidekicks: db-data io.rancher.sidekicks: db-data
web:
image: odoo:latest
environment:
PGHOST: db
PGPASSWORD: P4ssw0rD
PGUSER: odoo
stdin_open: true
volumes:
- odoo-datadir:/var/lib/odoo
- odoo-extra-addons:/mnt/extra-addons
- odoo-tools:/usr/lib/python2.7/dist-packages/odoo
- odoo-conf:/etc/odoo
tty: true
links:
- db:db
labels:
io.rancher.container.pull_image: always
io.rancher.sidekicks: script
script:
image: dvalue/odoo-script
stdin_open: true
tty: true
links:
- db:db
volumes_from:
- web
labels:
io.rancher.container.pull_image: always
io.rancher.container.start_once: 'true'
\ No newline at end of file
...@@ -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