forked from OpenG2P/openg2p-erp-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prod.yaml
76 lines (71 loc) · 3.37 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
76
version: "2.4"
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"
depends_on:
- db
networks:
default:
inverseproxy_shared:
labels:
traefik.longpolling.frontend.rule: "Host:${DOMAIN_PROD};PathPrefix:/longpolling/"
traefik.www.frontend.rule: "Host:${DOMAIN_PROD}"
traefik.forbid-crawlers.frontend.rule: "Host:${DOMAIN_PROD};PathPrefix:/web,/web/{anything:.*},/website/info,/website/info/{anything:.*}"
# Main service
? traefik.http.middlewares.openg2p-docker-12-0-prod-buffering.buffering.retryExpression
: IsNetworkError() && Attempts() < 5
traefik.http.middlewares.openg2p-docker-12-0-prod-compress.compress: "true"
traefik.http.routers.openg2p-docker-12-0-prod-main.entrypoints: "web-main"
traefik.http.routers.openg2p-docker-12-0-prod-main.middlewares:
openg2p-docker-12-0-prod-buffering, openg2p-docker-12-0-prod-compress
traefik.http.routers.openg2p-docker-12-0-prod-main.rule: "host(`${DOMAIN_PROD}`)"
traefik.http.routers.openg2p-docker-12-0-prod-main.service: "openg2p-docker-12-0-prod-main"
traefik.http.routers.openg2p-docker-12-0-prod-main.tls: "true"
traefik.http.routers.openg2p-docker-12-0-prod-main.tls.certresolver: "letsencrypt"
traefik.http.services.openg2p-docker-12-0-prod-main.loadbalancer.server.port: 8069
# Longpolling service
traefik.http.routers.openg2p-docker-12-0-prod-longpolling.entrypoints: "web-main"
traefik.http.routers.openg2p-docker-12-0-prod-longpolling.rule:
"host(`${DOMAIN_PROD}`) && pathprefix(`/longpolling/`)"
traefik.http.routers.openg2p-docker-12-0-prod-longpolling.service: "openg2p-docker-12-0-prod-longpolling"
traefik.http.services.openg2p-docker-12-0-prod-longpolling.loadbalancer.server.port: 8072
traefik.http.routers.openg2p-docker-12-0-prod-longpolling.tls: "true"
traefik.http.routers.openg2p-docker-12-0-prod-longpolling.tls.certresolver: "letsencrypt"
# Forbid crawlers
? traefik.http.middlewares.openg2p-docker-12-0-prod-forbid-crawlers.headers.customResponseHeaders.X-Robots-Tag
: "noindex, nofollow"
traefik.http.routers.openg2p-docker-12-0-prod-forbidden-crawlers.entrypoints: "web-main"
traefik.http.routers.openg2p-docker-12-0-prod-forbidden-crawlers.middlewares:
openg2p-docker-12-0-prod-buffering, openg2p-docker-12-0-prod-compress,
openg2p-docker-12-0-prod-forbid-crawlers
traefik.http.routers.openg2p-docker-12-0-prod-forbidden-crawlers.rule:
Host(`${DOMAIN_PROD}`) && Path(`/web`, `/web/{anything:.*}`, `/website/info`,
`/website/info/{anything:.*}`)
traefik.http.routers.openg2p-docker-12-0-prod-forbidden-crawlers.service: "openg2p-docker-12-0-prod-main"
traefik.http.routers.openg2p-docker-12-0-prod-forbidden-crawlers.tls: "true"
traefik.http.routers.openg2p-docker-12-0-prod-forbidden-crawlers.tls.certresolver: "letsencrypt"
db:
extends:
file: common.yaml
service: db
env_file:
- .docker/db-creation.env
restart: unless-stopped
networks:
default:
driver_opts:
encrypted: 1
inverseproxy_shared:
external: true
volumes:
filestore:
db: