forked from iterativo-git/dockerdoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (41 loc) · 962 Bytes
/
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
version: "3.7"
networks:
default:
external:
name: cloudbuild
odoonet:
volumes:
odoo-data:
odoo-testlogs:
odoo-modules:
psql:
services:
odoo:
image: iterativodo/dockerdoo:${ODOO_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
networks:
odoonet:
# ------------------------
db:
image: postgres:${PSQL_VERSION}
restart: unless-stopped
volumes:
- psql:/var/lib/postgresql/data/pgdata
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
- PGDATA=/var/lib/postgresql/data/pgdata
networks:
odoonet: