-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
55 lines (52 loc) · 1.25 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
version: '3.4'
services:
database:
image: '${REGISTRY_NAME}mongo:4.2-bionic'
volumes:
- casidb:/data/db
networks:
- 'internal'
restart: 'unless-stopped'
redis:
image: '${REGISTRY_NAME}redis:6.2-alpine'
restart: always
networks:
- 'internal'
ports:
- '6379:6379'
env_file:
- './.env'
command: redis-server --loglevel warning --requirepass ${REDIS_PASS}
volumes:
- casi_redis:/data
CASI:
build: .
image: '${REGISTRY_NAME}devclubiitd/casi:0.1'
ports:
- ${PORT}:${PORT}
healthcheck:
test: ['CMD', 'curl', 'http://localhost:${PORT}']
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
restart: 'unless-stopped'
networks:
- 'internal'
- 'reverseproxy'
env_file:
- ./.env
environment:
- VIRTUAL_HOST
- MONGODB_URI_LOCAL
depends_on:
- database
- redis
volumes:
casidb:
casi_redis:
networks:
reverseproxy:
external:
name: 'reverseproxy'
internal: