-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
119 lines (110 loc) · 2.7 KB
/
docker-compose.yml
File metadata and controls
119 lines (110 loc) · 2.7 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: '3'
services:
db:
image: mdillon/postgis
container_name: db
restart: always
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- app-network
mqtt:
build: mosquitto-docker
restart: unless-stopped
container_name: mqtt
volumes:
- mosquitto-data:/mosquitto/data
- ./mosquitto:/etc/mosquitto
networks:
- app-network
depends_on:
- emstrack
mqtt-test:
build: mosquitto-docker
restart: unless-stopped
container_name: mqtt-test
volumes:
- mosquitto-test-data:/mosquitto/data
- ./mosquitto-test:/etc/mosquitto
networks:
- app-network
depends_on:
- emstrack
emstrack:
build:
context: https://github.com/EMSTrack/EMSTrack-Django.git#devel
env_file:
- settings.env
#- local.env
container_name: emstrack
volumes:
- static:/app/deploy/static
- mosquitto-data:/mosquitto/data
- mosquitto-test-data:/mosquitto-test/data
- settings:/etc/emstrack
- certbot-localhost:/etc/certificates/localhost
networks:
- app-network
depends_on:
- db
certbot:
build:
context: https://github.com/EMSTrack/certbot.git
# image: certbot/certbot
container_name: certbot
volumes:
- certbot-localhost:/etc/certificates/localhost
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
- web-root:/var/www/html
command: certonly --dry-run --webroot --webroot-path=/var/www/html --email admin@emstrack.org --agree-tos --no-eff-email --force-renewal -d emstrack.org -d www.emstrack.org
depends_on:
- db
networks:
- app-network
dashboard:
build:
context: https://github.com/EMSTrack/EMSTrack-Dashboard.git#main
container_name: dashboard
env_file:
- settings.env
#- local.env # uncomment when running
ports:
- 8080:8080 # internal:external
networks:
- app-network
nginx:
image: nginx:mainline-alpine
container_name: nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "8883:8883"
- "8884:8884"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/conf.d:/etc/nginx/conf.d
- ./dhparam:/etc/ssl/certs
- web-root:/var/www/html
- static:/var/www/html/static
- certbot-localhost:/etc/certificates/localhost
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
depends_on:
- certbot
networks:
- app-network
volumes:
pgdata:
settings:
web-root:
static:
certbot-localhost:
certbot-etc:
certbot-var:
mosquitto-data:
mosquitto-test-data:
networks:
app-network:
driver: bridge