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
/
test.yaml
74 lines (68 loc) · 1.93 KB
/
test.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
version: "2.1"
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:
inverseproxy_shared:
labels:
traefik.frontend.headers.customResponseHeaders:
"X-Robots-Tag:noindex, nofollow"
traefik.longpolling.frontend.rule:
"Host:${DOMAIN_TEST};PathPrefix:/longpolling/"
traefik.www.frontend.rule: "Host:${DOMAIN_TEST}"
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
inverseproxy_shared:
labels:
traefik.docker.network: "inverseproxy_shared"
traefik.enable: "true"
traefik.frontend.passHostHeader: "true"
traefik.port: "8025"
traefik.frontend.rule: "Host:${DOMAIN_TEST};PathPrefixStrip:/smtpfake/"
networks:
default:
internal: true
driver_opts:
encrypted: 1
globalwhitelist_shared:
external: true
inverseproxy_shared:
external: true
volumes:
filestore:
db: