This commit is contained in:
KaySar12 2025-03-21 08:46:34 +07:00
parent 7c42455d44
commit 2ce53ab9d2
2 changed files with 2 additions and 16 deletions

View File

@ -3,16 +3,13 @@ services:
app:
image: ${ODOO_IMAGE:-odoo}:${ODOO_TAG:-18}
container_name: ${ODOO_CONTAINER:-odoo}
# user: root
depends_on:
- db
ports:
- ${ODOO_PORT:-8069}:8069
# - "${ODOO_CHAT_PORT:-8072}:8072"
tty: true
command: --
environment:
- HOST=db
- HOST=${HOST:-localhost}
- USER=${PG_USER:-changeme}
- PASSWORD=${PG_PASS:-password}
volumes:
@ -20,16 +17,4 @@ services:
- ${ODOO_CONFIG:-./etc}:/etc/odoo
- ${ODOO_BACKUP:-./backup}:/var/lib/odoo/backup
restart: always
db:
image: postgres:16
# user: root
environment:
- POSTGRES_USER=${PG_USER:-changeme}
- POSTGRES_PASSWORD=${PG_PASS:-password}
- POSTGRES_DB=postgres
ports:
- ${PG_PORT:-5432}:5432
restart: always
volumes:
- ${PG_DATA:-./postgresql}:/var/lib/postgresql/data

View File

@ -8,6 +8,7 @@ ODOO_CONTAINER =
ODOO_ADDONS=./addons
ODOO_CONFIG=./etc
ODOO_BACKUP=./backup
HOST=
#Database
PG_PORT=
PG_USER=