-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevel.yaml
124 lines (113 loc) · 2.98 KB
/
devel.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: "2.1"
services:
odoo_proxy:
image: tecnativa/whitelist
depends_on:
- odoo
networks: &public
default:
public:
ports:
- "127.0.0.1:${ODOO_MAJOR}069:8069"
environment:
PORT: 8069
TARGET: odoo
odoo:
extends:
file: common.yaml
service: odoo
build:
args:
# To aggregate in development, use `setup-devel.yaml`
AGGREGATE: "false"
# No need for this in development
PIP_INSTALL_ODOO: "false"
CLEAN: "false"
COMPILE: "false"
environment:
ADMIN_PASSWORD: admin
PGDATABASE: devel
PYTHONOPTIMIZE: ""
SMTP_PORT: "1025"
# You want demo data for development
WITHOUT_DEMO: "false"
volumes:
- ./odoo/custom:/opt/odoo/custom:ro,z
- ./odoo/auto/addons:/opt/odoo/auto/addons:rw,z
depends_on:
- cdnjs_cloudflare_proxy
- db
- fonts_googleapis_proxy
- fonts_gstatic_proxy
- gravatar_proxy
- smtp
- wdb
command:
- odoo
- --workers=0
# XXX Odoo v8 has no `--dev` mode; Odoo v9 has no parameters
- --dev=reload,qweb,werkzeug,xml,wdb
db:
extends:
file: common.yaml
service: db
smtp:
extends:
file: common.yaml
service: smtpfake
networks: *public
ports:
- "127.0.0.1:8025:8025"
wdb:
image: yajo/wdb-server
networks: *public
ports:
- "127.0.0.1:1984:1984"
# Whitelist outgoing traffic for tests, reports, etc.
cdnjs_cloudflare_proxy:
image: tecnativa/whitelist
networks:
default:
aliases:
- cdnjs.cloudflare.com
public:
environment:
TARGET: cdnjs.cloudflare.com
PRE_RESOLVE: 1
fonts_googleapis_proxy:
image: tecnativa/whitelist
networks:
default:
aliases:
- fonts.googleapis.com
public:
environment:
TARGET: fonts.googleapis.com
PRE_RESOLVE: 1
fonts_gstatic_proxy:
image: tecnativa/whitelist
networks:
default:
aliases:
- fonts.gstatic.com
public:
environment:
TARGET: fonts.gstatic.com
PRE_RESOLVE: 1
gravatar_proxy:
image: tecnativa/whitelist
networks:
default:
aliases:
- www.gravatar.com
public:
environment:
TARGET: www.gravatar.com
PRE_RESOLVE: 1
networks:
default:
internal: true
public:
volumes:
filestore:
db: