-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
84 lines (78 loc) · 2.15 KB
/
docker-compose.yml
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
# Root file for the dev composition.
#
# This contains the common configuration for all developers
#
# You can create a 'docker-compose.override.yml' to customize it according
# to your needs it will automatically be applied on top of this
# file when the option '-f' of docker-compose is not used
version: '2'
services:
odoo:
build: ./odoo/
# Enable if you use oca/connector:
# command: "odoo.py --load=web,connector"
depends_on:
- db
tty: true
stdin_open: true
ports:
- 8069
- 8072
volumes:
- "data-odoo:/data/odoo"
- "data-odoo-db-cache:/.cachedb"
- "data-odoo-pytest-cache:/odoo/.cache"
- "./odoo/src:/odoo/src"
- "./odoo/local-src:/odoo/local-src"
- "./odoo/external-src:/odoo/external-src"
- "./odoo/songs:/odoo/songs"
- "./odoo/migration.yml:/odoo/migration.yml"
- "./odoo/data:/odoo/data"
environment:
DB_USER: odoo
DB_PASSWORD: odoo
DB_NAME: odoodb
ADMIN_PASSWD: mijaebohb8Thae1g
RUNNING_ENV: dev
# Enable if you use oca/connector:
# ODOO_CONNECTOR_CHANNELS: root:4
MARABUNTA_MODE: sample # could be 'full' for the db with all the data
MARABUNTA_ALLOW_SERIE: 'True' # should not be set in production
db:
image: camptocamp/postgres:9.5
command: -c shared_buffers=256MB -c maintenance_work_mem=256MB -c wal_buffers=8MB -c effective_cache_size=1024MB
ports:
- 5432
environment:
POSTGRES_USER: odoo
POSTGRES_PASSWORD: odoo
volumes:
- "data-db:/var/lib/postgresql/data"
nginx:
image: camptocamp/odoo-nginx:11.0-1.4.0
depends_on:
- odoo
ports:
- 80:80
mailhog:
image: mailhog/mailhog
ports:
- 8025:8025
## If you need a CUPS server for `base_report_to_printer`
## See `cups-test-server/README.md`.
# cups-server:
# build: ./cups-test-server/
# ports:
# - "6631:631"
# expose:
# - 631
# volumes:
# - "/tmp/cups-pdf:/var/spool/cups-pdf:rw"
# environment:
# CUPS_USER_ADMIN: admin
# CUPS_USER_PASSWORD: secr3t
volumes:
data-odoo:
data-db:
data-odoo-db-cache:
data-odoo-pytest-cache: