Actualiser docker-compose.yml
This commit is contained in:
parent
8c6445f67b
commit
ab3c827d64
1 changed files with 13 additions and 14 deletions
|
|
@ -1,29 +1,28 @@
|
||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
odoo-service: # Configuration du container Odoo
|
odoo-service: # Configuration du container Odoo
|
||||||
image: ${ODOO_IMAGE}
|
image: ${ODOO_IMAGE}
|
||||||
container_name: odoo-V18-${POSTGRESQL_DB_NAME}
|
container_name: ${ODOO_CONTAINER}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
user: root
|
user: root
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres # L'exécution de notre service dépend de celui de postgres
|
- postgres # L'exécution de notre service dépend de celui de postgres
|
||||||
ports:
|
ports:
|
||||||
- "18069:8069" # Le port 18069 est exposé pour accéder à l'application Odoo
|
- "18069:8069" # Le port 18069 est exposé pour accéder à l'application Odoo
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/etc/odoo:z
|
- ./:/etc/odoo:z
|
||||||
- ./odoo-filestore:/var/lib/odoo/filestore:z
|
- ./odoo-filestore:/var/lib/odoo/filestore:z
|
||||||
- ./custom:/mnt/extra-addons:z
|
- ./custom:/mnt/extra-addons:z
|
||||||
- ./odoo-logs:/var/log/odoo:z
|
- ./odoo-logs:/var/log/odoo:z
|
||||||
|
|
||||||
postgres: # Configuration de notre service PostgreSQL
|
postgres: # Configuration de notre service PostgreSQL
|
||||||
image: postgres15-${POSTGRESQL_PORT}-image:latest # Image postgres 15 de Docker hub
|
image: postgres15-${POSTGRESQL_PORT}-image:latest # basé sur Image postgres 15 de Docker hub
|
||||||
container_name: postgres-${POSTGRESQL_PORT}-${POSTGRESQL_DB_NAME}
|
container_name: ${POSTGRES_CONTAINER}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=odoo
|
- POSTGRES_USER=${POSTGRES_USER}
|
||||||
- POSTGRES_PASSWORD=odoo
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
- POSTGRES_DB=postgres
|
- POSTGRES_DB=${POSTGRES_DB}
|
||||||
volumes:
|
volumes:
|
||||||
- ./odoo-postgresql-data:/var/lib/postgresql/data:z
|
- ./odoo-postgresql-data:/var/lib/postgresql/data:z
|
||||||
|
|
||||||
Loading…
Reference in a new issue