Commit ca0734b5 by Thibault Grandjean

update docker-compose

parent 698acd9b
Pipeline #1648 passed with stage
in 1 minute 33 seconds
...@@ -31,18 +31,24 @@ services: ...@@ -31,18 +31,24 @@ services:
image: "postgres:10" image: "postgres:10"
env_file: .env env_file: .env
restart: always restart: always
ports:
- "5432:5432" # Expose port for data restore
volumes: volumes:
- "odoo-pg-data:/var/lib/postgresql/data" - "odoo-pg-data:/var/lib/postgresql/data"
odoo: odoo:
image: "registry.gitlab.com/lgds/foodcoops:9.0-cooperatic-2021-04-02" image: odoo/foodcoops # First create this image locally from odoo's repo
env_file: .env
restart: always restart: always
ports: ports:
- "8069:8069" - "8069:8069"
links: links:
- "database:database" - "database:database"
volumes: volumes:
- "odoo-shared-data:/home/app/.local/share/Odoo" - "odoo-shared-data:/root/.local/share/Odoo"
- "./data/:/external-data/" # Create a volume binding local fs to container to restore data
command: python ./odoo/odoo.py --db_host=database --database=lacagette_anon --db_user=foodcoops --db_password=foodcoops --addons-path=odoo/addons,lacagette_addons,extra_addons,smile_addons,intercoop_addons,louve_addons,supercafoutch_addons
depends_on:
- "database"
volumes: volumes:
odoo-shared-data: odoo-shared-data:
......
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 to comment