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'
|
||||
|
||||
services:
|
||||
odoo-service: # Configuration du container Odoo
|
||||
image: ${ODOO_IMAGE}
|
||||
container_name: odoo-V18-${POSTGRESQL_DB_NAME}
|
||||
restart: unless-stopped
|
||||
container_name: ${ODOO_CONTAINER}
|
||||
restart: unless-stopped
|
||||
user: root
|
||||
depends_on:
|
||||
depends_on:
|
||||
- postgres # L'exécution de notre service dépend de celui de postgres
|
||||
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:
|
||||
- ./:/etc/odoo:z
|
||||
- ./:/etc/odoo:z
|
||||
- ./odoo-filestore:/var/lib/odoo/filestore:z
|
||||
- ./custom:/mnt/extra-addons:z
|
||||
- ./odoo-logs:/var/log/odoo:z
|
||||
|
||||
postgres: # Configuration de notre service PostgreSQL
|
||||
image: postgres15-${POSTGRESQL_PORT}-image:latest # Image postgres 15 de Docker hub
|
||||
container_name: postgres-${POSTGRESQL_PORT}-${POSTGRESQL_DB_NAME}
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POSTGRES_USER=odoo
|
||||
- POSTGRES_PASSWORD=odoo
|
||||
- POSTGRES_DB=postgres
|
||||
image: postgres15-${POSTGRESQL_PORT}-image:latest # basé sur Image postgres 15 de Docker hub
|
||||
container_name: ${POSTGRES_CONTAINER}
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_DB=${POSTGRES_DB}
|
||||
volumes:
|
||||
- ./odoo-postgresql-data:/var/lib/postgresql/data:z
|
||||
|
||||
|
||||
Loading…
Reference in a new issue