Commit 4a5f042b by Ivan

odoo 8 con sftp vuelvo a añadir contenedor de datos con volumen local

parent 5cf99b96
Showing with 19 additions and 3 deletions
...@@ -11,18 +11,34 @@ volumes: ...@@ -11,18 +11,34 @@ volumes:
odoo-conf: odoo-conf:
driver: rancher-nfs driver: rancher-nfs
services: services:
db: db-data:
image: postgres:9.6.5-alpine image: postgres:9.4
environment: environment:
PGDATA: /var/lib/postgresql/data/pgdata PGDATA: /var/lib/postgresql/data
POSTGRES_USER: odoo POSTGRES_USER: odoo
POSTGRES_PASSWORD: P4ssw0rD POSTGRES_PASSWORD: P4ssw0rD
stdin_open: true stdin_open: true
volumes: volumes:
- odoo-pg-data:/var/lib/postgresql - odoo-pg-data:/var/lib/postgresql
tty: true 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/data
POSTGRES_USER: odoo
POSTGRES_PASSWORD: P4ssw0rD
stdin_open: true
tty: true
volumes_from:
- db-data
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
io.rancher.sidekicks: db-data
web: web:
image: odoo:8 image: odoo:8
environment: environment:
......
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