forked from Maxxoto/odoo-optimize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (61 loc) · 1.61 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
59
60
61
version: '3.8'
services:
odoo:
image: odoo:13.0
container_name: odoo13
depends_on:
- db
ports:
- "8787:8787"
- "8072:8072"
volumes:
- odoo13-web-data:/var/lib/odoo
- ./config:/etc/odoo
- ./addons:/mnt/extra-addons
command: --dev=all
nginx:
container_name: nginx
image: nginx:latest
restart: unless-stopped
ports:
- 80:80
# - 443:443
volumes:
- ./nginx/config/conf.d:/etc/nginx/conf.d
- ./nginx/config/nginx.conf:/etc/nginx/nginx.conf
# - ./certbot/conf:/etc/nginx/ssl
# - ./certbot/data:/var/www/html
# certbot:
# container_name: certbot
# image: certbot/certbot:latest
# command: certonly --webroot --webroot-path=/var/www/html --email dani@satusoft.com --agree-tos --no-eff-email -d ec2-18-141-235-55.ap-southeast-1.compute.amazonaws.com -d www.ec2-18-141-235-55.ap-southeast-1.compute.amazonaws.com
# volumes:
# - ./certbot/conf:/etc/letsencrypt
# - ./certbot/logs:/var/log/letsencrypt
# - ./certbot/data:/var/www/html
db:
image: postgres:10
container_name: postgres
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- PGDATA=/var/lib/postgresql/data/pgdata
ports:
- "5432:5432"
volumes:
- odoo13-db-data:/var/lib/postgresql/data/pgdata
# haproxy:
# image: haproxy:latest
# container_name: haproxy
# ports:
# - "80:80"
# volumes:
# - ./haproxy:/usr/local/etc/haproxy:ro
volumes:
odoo13-web-data:
odoo13-db-data:
networks:
default:
external:
name: odoo13-network