-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.yaml
38 lines (35 loc) · 892 Bytes
/
common.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: "2.4"
services:
odoo:
build:
context: ./odoo
args:
ODOO_VERSION: "14.0"
UID: "${UID:-1000}"
GID: "${GID:-1000}"
environment:
EMAIL_FROM: ""
PGDATABASE: &dbname prod
PGUSER: &dbuser "odoo"
PROXY_MODE: "true"
LIST_DB: "true"
tty: true
volumes:
- filestore:/var/lib/odoo:z
labels:
traefik.backend.buffering.retryExpression: IsNetworkError() && Attempts() < 5
traefik.docker.network: "inverseproxy_shared"
traefik.frontend.passHostHeader: "true"
traefik.port: "8069"
db:
image: ghcr.io/tecnativa/postgres-autoconf:14-alpine
shm_size: 4gb
environment:
POSTGRES_DB: *dbname
POSTGRES_USER: *dbuser
CONF_EXTRA: |
work_mem = 512MB
volumes:
- db:/var/lib/postgresql/data:z
smtpfake:
image: docker.io/mailhog/mailhog