30 lines
954 B
YAML
30 lines
954 B
YAML
version: '3'
|
|
|
|
services:
|
|
odoo-ls-transcription: # Configuration du container Odoo
|
|
image: odoo18-20260324-image:latest # Nom de notre image personnalisée
|
|
container_name: odoo-mercier
|
|
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
|
|
- ./logs:/var/log/odoo:z
|
|
|
|
postgres: # Configuration de notre service PostgreSQL
|
|
image: postgres15-5434-image:latest # Image postgres 15 de Docker hub
|
|
container_name: postgres-mercier
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_USER=odoo
|
|
- POSTGRES_PASSWORD=odoo
|
|
- POSTGRES_DB=postgres
|
|
volumes:
|
|
- ./postgresql-data:/var/lib/postgresql/data:z
|
|
|