Ajouter docker-compose.yml.template
This commit is contained in:
parent
462652520f
commit
a669a62aac
1 changed files with 28 additions and 0 deletions
28
docker-compose.yml.template
Normal file
28
docker-compose.yml.template
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
odoo-service: # Configuration du container Odoo
|
||||||
|
image: ${ODOO_IMAGE}
|
||||||
|
container_name: ${ODOO_CONTAINER}
|
||||||
|
restart: unless-stopped
|
||||||
|
user: root
|
||||||
|
depends_on:
|
||||||
|
- postgres # 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: # Configuration de notre service PostgreSQL
|
||||||
|
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