2026-04-05 08:52:57 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
|
|
services:
|
2026-04-21 09:05:24 +00:00
|
|
|
odoo-service: # Configuration du container Odoo
|
2026-04-21 10:20:44 +00:00
|
|
|
image: ${ODOO_IMAGE}
|
2026-05-27 13:52:13 +00:00
|
|
|
container_name: odoo-V18-${POSTGRESQL_DB_NAME}
|
2026-04-05 08:52:57 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
|
user: root
|
|
|
|
|
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
|
|
|
|
|
volumes:
|
|
|
|
|
- ./:/etc/odoo:z
|
|
|
|
|
- ./odoo-filestore:/var/lib/odoo/filestore:z
|
|
|
|
|
- ./custom:/mnt/extra-addons:z
|
2026-04-10 17:54:52 +00:00
|
|
|
- ./odoo-logs:/var/log/odoo:z
|
2026-04-05 08:52:57 +00:00
|
|
|
|
|
|
|
|
postgres: # Configuration de notre service PostgreSQL
|
2026-05-27 13:52:13 +00:00
|
|
|
image: postgres15-${POSTGRESQL_PORT}-image:latest # Image postgres 15 de Docker hub
|
|
|
|
|
container_name: postgres-${POSTGRESQL_PORT}-${POSTGRESQL_DB_NAME}
|
2026-04-05 08:52:57 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
|
environment:
|
|
|
|
|
- POSTGRES_USER=odoo
|
|
|
|
|
- POSTGRES_PASSWORD=odoo
|
|
|
|
|
- POSTGRES_DB=postgres
|
|
|
|
|
volumes:
|
2026-04-10 17:54:52 +00:00
|
|
|
- ./odoo-postgresql-data:/var/lib/postgresql/data:z
|
2026-04-05 08:52:57 +00:00
|
|
|
|