-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
65 lines (61 loc) · 1.24 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
version: '3.4'
services:
database:
image: '${REGISTRY_NAME}mongo:5.0.3-focal'
volumes:
- iitdconnectdb:/data/db
networks:
- 'internal'
restart: 'unless-stopped'
dashboard:
build: .
image: '${REGISTRY_NAME}devclubiitd/iitdconnect:0.1'
volumes:
- public_media:/code/media
- protected_media:/code/protected
healthcheck:
test: ['CMD', 'curl', 'http://localhost:${PORT}']
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
restart: 'unless-stopped'
ports:
- ${PORT}
networks:
- 'internal'
- 'reverseproxy'
env_file:
- ./.env
environment:
- DB_URL
- PORT
depends_on:
- database
nginx:
image: '${REGISTRY_NAME}devclubiitd/iitdconnect-nginx:0.1'
build: ./nginx
volumes:
- public_media:/code/media
- protected_media:/code/protected
ports:
- 80
depends_on:
- dashboard
networks:
- 'reverseproxy'
- 'internal'
env_file:
- ./.env
environment:
- VIRTUAL_HOST=${VIRTUAL_HOST}
restart: always
volumes:
iitdconnectdb:
public_media:
protected_media:
networks:
reverseproxy:
external:
name: 'reverseproxy'
internal: