This repository has been archived by the owner on Aug 9, 2020. It is now read-only.
forked from Tecnativa/doodba-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 1
/
prod.yaml
75 lines (69 loc) · 1.8 KB
/
prod.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: "2.1"
services:
odoo:
extends:
file: common.yaml
service: odoo
restart: unless-stopped
env_file:
- .docker/odoo.env
- .docker/db-access.env
environment:
DOODBA_ENVIRONMENT: "${DOODBA_ENVIRONMENT-prod}"
INITIAL_LANG: "$INITIAL_LANG"
SMTP_SERVER: smtplocal
depends_on:
- db
- smtp
networks:
default:
inverseproxy_shared:
labels:
traefik.longpolling.frontend.rule:
"Host:${DOMAIN_PROD};PathPrefix:/longpolling/"
traefik.www.frontend.rule: "Host:${DOMAIN_PROD}"
traefik.alt.frontend.rule: "Host:${DOMAIN_PROD_ALT}"
traefik.alt.frontend.redirect.regex:
"^(.*)://${DOMAIN_PROD_ALT}/(.*)$$"
traefik.alt.frontend.redirect.replacement:
"$$1://${DOMAIN_PROD}/$$2"
db:
extends:
file: common.yaml
service: db
env_file:
- .docker/db-creation.env
restart: unless-stopped
smtp:
extends:
file: common.yaml
service: smtpreal
env_file:
- .docker/smtp.env
networks:
default:
aliases:
- smtplocal
restart: unless-stopped
backup:
extends:
file: common.yaml
service: backup
env_file:
- .docker/backup.env
- .docker/db-access.env
restart: unless-stopped
depends_on:
- db
- smtp
networks:
default:
driver_opts:
encrypted: 1
inverseproxy_shared:
external: true
volumes:
backup_cache:
filestore:
db:
smtp: