forked from Sergio2409/docker_compose_odoo_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (50 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
53 lines (50 loc) · 1.23 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
version: '3.9'
services:
odoo-stack:
container_name: odoo-stack
build:
context: ./dockerfile
dockerfile: odoo.Dockerfile
ports:
- "8069:8069"
volumes:
- ./addons-extra:/mnt/extra-addons
- ./odoo-config:/etc/odoo
- odoo-web-data:/var/lib/odoo
#Uncomment next line to install a module
command: -i base -d odoo
#Uncomment next line to update a module
#command: -u openacademy -d odoo
depends_on:
- database-stack
restart: always
database-stack:
container_name: database-stack
image: ${DB_IMAGE}:${DB_TAG}
volumes:
- database-stack-data:/var/lib/postgresql/data/pgdata
ports:
- "${DB_PORT}:5432"
#command: -p 5433
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_PASSWORD=${DB_PASSWD}
- POSTGRES_USER=${DB_USER}
- PGDATA=/var/lib/postgresql/data/pgdata
restart: always
nginx-stack:
container_name: nginx-stack
build:
context: ./dockerfile
dockerfile: nginx.Dockerfile
volumes:
- ./nginx-config:/etc/nginx/conf.d
ports:
- 80:80 #non secure
- 443:443 #ssl
depends_on:
- odoo-stack
restart: always
volumes:
odoo-web-data:
database-stack-data: