diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml new file mode 100644 index 0000000..9c07e8b --- /dev/null +++ b/docker-compose-dev.yml @@ -0,0 +1,48 @@ +services: + db: + image: postgres:17.0-alpine3.20 + restart: unless-stopped + command: > + -c max_wal_size=4GB + env_file: + .env + # ports: + # - 5433:5432 + volumes: + - postgres_17_data:/var/lib/postgresql/data/ + + odoo: + image: odoo-dev:18 + restart: unless-stopped + env_file: + .env + # ports: + # - 5678:5678 + # - 8069:8069 + volumes: + - /home/sysop/odoo18/:/opt/odoo/ + - /home/sysop/odoo18/customaddons/${CUSTOMADDONS_DIR}/odoo.conf:/etc/odoo.conf + - odoo_18_filestore:/root/.local/share/Odoo/ + depends_on: + - db + labels: + - logging=promtail + - logging_jobname=containerlogs + + nginx: + image: nginx:1.27.0-alpine3.19-slim + restart: unless-stopped + env_file: + .env + ports: + - 3080:80 + volumes: + - /home/sysop/odoo18/customaddons/${CUSTOMADDONS_DIR}/nginx.conf:/etc/nginx/conf.d/default.conf + depends_on: + - odoo + +volumes: + postgres_17_data: + name: postgres_17_data + odoo_18_filestore: + name: odoo_18_filestore