-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
55 lines (53 loc) · 1.29 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
services:
db:
image: postgres:17
container_name: db
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=postgres
volumes:
- ./volumes/postgresql:/var/lib/postgresql/data
networks:
- odoo_network
restart: always
ports:
- "5432:5432"
odoo:
build:
context: .
dockerfile: Dockerfile
container_name: odoo
depends_on:
- db
environment:
- HOST=db
- USER=${POSTGRES_USER}
- PASSWORD=${POSTGRES_PASSWORD}
- PORT=5432
volumes:
- ./volumes/odoo:/etc/odoo
- ./addons:/mnt/extra-addons
- ./odoo.conf:/etc/odoo/odoo.conf
networks:
- odoo_network
restart: always
ports:
- "8069:8069"
- "8072:8072"
nginx:
image: nginx:latest
container_name: nginx
depends_on:
- odoo
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "80:80"
networks:
- odoo_network
networks:
odoo_network:
driver: bridge
volumes:
postgresql: