27 lines
No EOL
964 B
Text
27 lines
No EOL
964 B
Text
services:
|
|
odoo-service: # Configuration du container Odoo
|
|
image: ${ODOO_IMAGE}
|
|
container_name: ${ODOO_CONTAINER}
|
|
restart: unless-stopped
|
|
user: root
|
|
depends_on:
|
|
- postgres-service # L'exécution de notre service dépend de celui de postgres
|
|
ports:
|
|
- "${ODOO_HTTP_PORT}:8069" # port exposé pour accéder à l'application Odoo
|
|
volumes:
|
|
- ./:/etc/odoo:z
|
|
- ./odoo-filestore:/var/lib/odoo/filestore:z
|
|
- ./custom:/mnt/extra-addons:z
|
|
- ./odoo-logs:/var/log/odoo:z
|
|
|
|
postgres-service: # Configuration de notre service PostgreSQL
|
|
image: postgres15-${POSTGRES_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
|
|
volumes:
|
|
- ./odoo-postgresql-data:/var/lib/postgresql/data:z
|
|
|