Add compose dev
This commit is contained in:
parent
0ef5538aa4
commit
a44fcd581f
48
docker-compose-dev.yml
Normal file
48
docker-compose-dev.yml
Normal file
@ -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
|
||||
Loading…
Reference in New Issue
Block a user