forked from alphak3y/chainlink-datastreams-transmitter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 1.07 KB
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
services:
transmitter:
build: .
ports:
- '3000:3000'
environment:
- PORT=3000
- REDIS_HOST=transmitter-redis
- REDIS_PASSWORD=${REDIS_PASSWORD}
- PRIVATE_KEY_EVM=${PRIVATE_KEY_EVM}
- SECRET_KEY_SVM=${SECRET_KEY_SVM}
- DATASTREAMS_HOSTNAME=${DATASTREAMS_HOSTNAME}
- DATASTREAMS_WS_HOSTNAME=${DATASTREAMS_WS_HOSTNAME}
- DATASTREAMS_CLIENT_ID=${DATASTREAMS_CLIENT_ID}
- DATASTREAMS_CLIENT_SECRET=${DATASTREAMS_CLIENT_SECRET}
volumes:
- ./logs:/transmitter/logs
- ./config.yml:/transmitter/config.yml
depends_on:
- transmitter-redis
transmitter-redis:
image: redis/redis-stack:latest
container_name: transmitter-redis
ports:
- '6379:6379'
volumes:
- ./data:/data
command: >
sh -c "
if [ -n \"$REDIS_PASSWORD\" ]; then
exec redis-stack-server --requirepass \"$REDIS_PASSWORD\" --save 60 1 --appendonly yes
else
exec redis-stack-server --save 60 1 --appendonly yes
fi
"
networks:
default:
driver: bridge