[FIX] start docker-compose with restart to sync db with odoo

This commit is contained in:
Mathieu Benoit 2020-10-01 04:11:12 -04:00
parent 890ca62d42
commit face278168

View file

@ -18,6 +18,7 @@ services:
# See the volume section at the end of the file
- erplibre_data_dir:/home/odoo/.local/share/Odoo/
- erplibre_conf:/etc/odoo
restart: always
db:
image: postgres:12.3
@ -28,6 +29,7 @@ services:
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- erplibre-db-data:/var/lib/postgresql/data/pgdata
restart: always
# We configure volume without specific destination to let docket manage it. To configure it through docker use (read related documentation before continuing) :
# - docker volume --help