-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
46 lines (41 loc) · 852 Bytes
/
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
version: '3.8'
services:
app:
container_name: nest-http
image: nest/nest-http:latest
command: node index.js --redis_host=redis --db_host=mongo --allowed_origins=${ALLOWED_ORIGINS} --jwt_secret=${JWT_SECRET} --color --cluster
environment:
- TZ=Asia/Shanghai
- NODE_ENV=production
restart: 'on-failure'
volumes:
- ./data/nest:/root/.nest
ports:
- '3333:3333'
depends_on:
- mongo
- redis
links:
- mongo
- redis
networks:
- app-network
mongo:
container_name: mongo
image: mongo
volumes:
- ./data/db:/data/db
ports:
- '3344:27017'
networks:
- app-network
redis:
image: redis
container_name: redis
ports:
- '6560:6379'
networks:
- app-network
networks:
app-network:
driver: bridge