[FIX] start docker-compose with restart to sync db with odoo
This commit is contained in:
parent
890ca62d42
commit
face278168
1 changed files with 2 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ services:
|
||||||
# See the volume section at the end of the file
|
# See the volume section at the end of the file
|
||||||
- erplibre_data_dir:/home/odoo/.local/share/Odoo/
|
- erplibre_data_dir:/home/odoo/.local/share/Odoo/
|
||||||
- erplibre_conf:/etc/odoo
|
- erplibre_conf:/etc/odoo
|
||||||
|
restart: always
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres:12.3
|
image: postgres:12.3
|
||||||
|
|
@ -28,6 +29,7 @@ services:
|
||||||
PGDATA: /var/lib/postgresql/data/pgdata
|
PGDATA: /var/lib/postgresql/data/pgdata
|
||||||
volumes:
|
volumes:
|
||||||
- erplibre-db-data:/var/lib/postgresql/data/pgdata
|
- 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) :
|
# 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
|
# - docker volume --help
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue