-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yaml
63 lines (57 loc) · 1.29 KB
/
docker-compose.prod.yaml
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
version: "3"
services:
extract-service:
image: rastokopal/fact-checking-extract-service:1.0.0
ports:
- 8080:8080
networks:
- nesjs-network
api:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./:/usr/src/app
- /usr/src/app/node_modules
ports:
- 80:${APP_PORT}
environment:
- MONGO_URI=mongodb:https://mongodb:27017/fact_checking_be
- MONGO_URI_TEST=mongodb:https://mongodb:27017/fact_checking_be_test
- NODE_ENV=production
- APP_NAME=${APP_NAME}
- APP_PORT=${APP_PORT}
- API_PREFIX=${API_PREFIX}
- AUTH_JWT_SECRET=${AUTH_JWT_SECRET}
- AUTH_JWT_TOKEN_EXPIRES_IN=${AUTH_JWT_TOKEN_EXPIRES_IN}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_PASSWORD=${REDIS_PASSWORD}
depends_on:
- mongodb
networks:
- nesjs-network
mongodb:
image: mongo:latest
environment:
- MONGODB_DATABASE=${MONGO_DB_NAME}
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
networks:
- nesjs-network
redis:
image: redis:latest
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- nesjs-network
volumes:
mongodb_data:
redis_data:
networks:
nesjs-network:
driver: bridge