You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

68 lines
1.3 KiB

version: "2.4"
services:
odoo:
extends:
file: common.yaml
service: odoo
env_file:
- .docker/odoo.env
- .docker/db-access.env
environment:
DOODBA_ENVIRONMENT: "${DOODBA_ENVIRONMENT-test}"
# To install demo data export DOODBA_WITHOUT_DEMO=false
WITHOUT_DEMO: "${DOODBA_WITHOUT_DEMO-all}"
SMTP_PORT: "1025"
SMTP_SERVER: smtplocal
restart: unless-stopped
depends_on:
- db
- smtp
networks:
default:
globalwhitelist_shared:
labels:
doodba.domain.main: ""
command:
- odoo
- --workers=2
- --max-cron-threads=1
db:
extends:
file: common.yaml
service: db
env_file:
- .docker/db-creation.env
restart: unless-stopped
smtp:
extends:
file: common.yaml
service: smtpfake
restart: unless-stopped
networks:
default:
aliases:
- smtplocal
labels:
doodba.domain.main: ""
volumes:
- "smtpconf:/etc/mailhog:ro,z"
entrypoint: [sh, -c]
command:
- test -r /etc/mailhog/auth && export MH_AUTH_FILE=/etc/mailhog/auth; exec MailHog
networks:
default:
internal: true
driver_opts:
encrypted: 1
globalwhitelist_shared:
external: true
volumes:
filestore:
db:
smtpconf: