-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (61 loc) · 1.32 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
66
version: '3.8'
volumes:
db_data:
driver: local
fcrs_data: {}
networks:
fcrs-network:
driver: bridge
services:
# FeeCollector Reporter API service
fcrs-report:
container_name: fcrs-report
build:
context: .
dockerfile: ./Dockerfile
target: fees-reporter
image: fcrs-report
depends_on:
- fcrs-cache
- fcrs-db
ports:
- 3000:3000
environment:
NODE_ENV: production
LOG_LEVEL: info # warn
OPENAPI_PUBLISH: true
MONGODB_PROTOCOL: mongodb
MONGODB_HOST: fcrs-db
MONGODB_PORT: 27017
MONGODB_DEFAULT_DATABASE: fcrs
REDIS_ENDPOINT: 'fcrs-cache:6379'
REDIS_PASSWORD: 'hSy2TiQFw8Yyzs4oxqjzwvoM'
links:
- fcrs-cache
- fcrs-db
volumes:
- fcrs_data:/fcrs/data:rw
networks:
- fcrs-network
# KV Cache
fcrs-cache:
container_name: fcrs-cache
image: redis:7.2.3-alpine3.18
restart: unless-stopped
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass hSy2TiQFw8Yyzs4oxqjzwvoM
volumes:
- db_data:/fcrs/cache:rw
networks:
- fcrs-network
# Database
fcrs-db:
image: mongo:7.0.6
restart: unless-stopped
ports:
- '27017:27017'
volumes:
- db_data:/fcrs/db:rw
networks:
- fcrs-network