-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 891 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (45 loc) · 891 Bytes
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
services:
api:
build: .
container_name: rangos-api
ports:
- '3000:3000'
env_file:
- .env
volumes:
- .:/app
- node_modules:/app/node_modules
depends_on:
mongo:
condition: service_healthy
restart: always
populate:
build: .
env_file:
- .env
depends_on:
- mongo
command: npm run populate
mongo:
image: mongo:5
container_name: rangos-mongo
restart: always
ports:
- '27017:27017'
volumes:
- mongo_data:/data/db
command: mongod --quiet --logpath /dev/null
healthcheck:
test: ['CMD', 'mongo', '--eval', 'db.runCommand("ping").ok']
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:latest
container_name: rangos-redis-server
ports:
- '6379:6379'
restart: always
volumes:
mongo_data:
node_modules: