-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (53 loc) · 1.24 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
version: '3.8'
services:
postgres:
image: postgres:${POSTGRES_VERSION}
container_name: ${POSTGRES_HOST}
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "${POSTGRES_PORT}:${POSTGRES_PORT}"
volumes:
- odoo-db-data:/var/lib/postgresql/data
networks:
- odoo-network
odoo:
image: odoo:${ODOO_VERSION}
container_name: ${ODOO_HOST}
restart: always
depends_on:
- ${POSTGRES_HOST}
ports:
- "${ODOO_PORT}:${ODOO_PORT}"
environment:
- DB_HOST=${POSTGRES_HOST}
- HOST=${POSTGRES_HOST}
- DB_PORT=${POSTGRES_PORT}
- DB_USER=${ODOO_DB_USER}
- DB_PASSWORD=${ODOO_DB_PASSWORD}
- DB_NAME=${ODOO_DB_NAME}
volumes:
- odoo-data:/var/lib/odoo
- odoo-addons:/mnt/extra-addons
networks:
- odoo-network
adminer:
image: adminer:${ADMINER_VERSION}
container_name: ${ADMINER_HOST}
restart: always
depends_on:
- ${POSTGRES_HOST}
ports:
- "${ADMINER_PORT}:${ADMINER_PORT}"
networks:
- odoo-network
networks:
odoo-network:
driver: bridge
volumes:
odoo-db-data:
odoo-data:
odoo-addons: