-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
executable file
·70 lines (67 loc) · 1.72 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
62
63
64
65
66
67
68
69
70
version: '3'
services:
odoo:
container_name: odoo
image: odoo:latest
restart: always
volumes:
- ./addons:/mnt/extra-addons/:rw
- ./config/odoo:/etc/odoo/:rw
- ./odoo-web-data:/var/lib/odoo/:rw
ports:
- "8069:8069"
depends_on:
- "db"
networks:
- odoo_network
nginx:
container_name: nginx
image: nginx:latest
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- ./config/nginx/conf:/etc/nginx/conf.d/:rw
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
depends_on:
- "odoo"
networks:
- odoo_network
certbot:
image: certbot/certbot
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
command: certonly --webroot -w /var/www/certbot --force-renewal --email youremail@email.com -d domain.com.br --agree-tos
depends_on:
- nginx
networks:
- odoo_network
db:
image: postgres:13
restart: always
container_name: postgresql
environment:
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- POSTGRES_DB=postgres
- PGDATA=/var/lib/postgresql/data/pgdata
ports:
- "127.0.0.1:9432:5432"
volumes:
- ./odoo-db-data:/var/lib/postgresql/data/pgdata
networks:
- odoo_network
logging:
driver: json-file
options:
max-size: "30m"
max-file: "10"
networks:
odoo_network:
driver: bridge
volumes:
odoo-web-data:
odoo-db-data: