-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.32 KB
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
services:
odoo:
image: iterativodo/dockerdoo:${ODOO_VERSION}
build:
context: .
dockerfile: Dockerfile
args:
- ODOO_VERSION=${ODOO_VERSION}
- PYTHON_VERSION=${PYTHON_VERSION}
- OS_VARIANT=${OS_VARIANT}
- WKHTMLTOX_VERSION=${WKHTMLTOX_VERSION}
env_file: .env
restart: unless-stopped
ports:
- 8069:8069
- 8072:8072
volumes:
# Host paths (.ssh configuration)
- ~/.ssh/:/opt/odoo/.ssh/:cached
# Named volumes
- odoo-data:${ODOO_DATA_DIR}
- odoo-testlogs:${ODOO_LOGS_DIR}
- odoo-modules:${ODOO_EXTRA_ADDONS}
depends_on:
db:
condition: service_healthy
# ------------------------
db:
image: postgres:${PSQL_VERSION}
restart: always
volumes:
- psql:/var/lib/postgresql/data/pgdata
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
- PGDATA=/var/lib/postgresql/data/pgdata
# Odoo expects the database to be created with the C collate
- POSTGRES_INITDB_ARGS=--lc-collate=C
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
interval: 30s
timeout: 10s
retries: 5
volumes:
odoo-data:
odoo-testlogs:
odoo-modules:
psql: