-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
166 lines (153 loc) · 3.33 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
services:
#
# DATABASES
#
db:
image: postgres:12-alpine
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASS}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- .tmp/postgres:/var/lib/postgresql/data
ports:
- 5432:5432
healthcheck:
test: pg_isready -U $$POSTGRES_USER
# admin:
# image: adminer
# restart: always
# ports:
# - 8082:8080
redis:
image: redis:7-alpine
ports:
- 6379:6379
command: redis-server --save 60 1 --loglevel warning
environment:
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- .tmp/redis/data:/data
- .tmp/redis/redis:/var/lib/redis
- .tmp/redis/config:/usr/local/etc/redis/redis.conf
healthcheck:
test: [ CMD, redis-cli, --raw, incr, ping ]
#
# CORE SERVICES
#
graph:
restart: always
image: ${DOCKER_IMAGE}
command:
- npm
- run-script
- graph
environment:
LOGGING_LEVEL: ${LOGGING_LEVEL}
DATABASE_URL: ${DATABASE_URL}
GRAPH_API_PORT: ${GRAPH_API_PORT}
GRAPH_API_SECRET_KEY: ${GRAPH_API_SECRET_KEY}
GRAPH_API_GRAPHQL_UI: ${GRAPH_API_GRAPHQL_UI}
GRAPH_API_SECURITY_TOKEN: ${GRAPH_API_SECURITY_TOKEN}
# links:
# - db
# - redis
ports:
- 8080:8080
depends_on:
- db
chain:
restart: always
image: ${DOCKER_IMAGE}
command:
- npm
- run-script
- chain
environment:
LOGGING_LEVEL: ${LOGGING_LEVEL}
DATABASE_URL: ${DATABASE_URL}
PUBLIC_GRAPH_URL: ${PUBLIC_GRAPH_URL}
CHAIN_RPC_URL: ${CHAIN_RPC_URL}
CHAIN_ACCOUNT: ${CHAIN_ACCOUNT}
REDIS_HOST: redis
REDIS_PORT: ${REDIS_PORT}
depends_on:
- db
- graph
- redis
service:
restart: always
image: ${DOCKER_IMAGE}
command:
- npm
- run-script
- service
environment:
LOGGING_LEVEL: ${LOGGING_LEVEL}
DATABASE_URL: ${DATABASE_URL}
links:
- db
depends_on:
- db
- graph
#
# AGGREGATOR SERVICES
#
discord:
restart: always
image: ${DOCKER_IMAGE}
command:
- npm
- run-script
- discord
environment:
LOGGING_LEVEL: ${LOGGING_LEVEL}
DATABASE_URL: ${DATABASE_URL}
DISCORD_BOT_KEY: ${DISCORD_BOT_KEY}
DISCORD_FETCH_MESSAGES_SINCE: ${DISCORD_FETCH_MESSAGES_SINCE}
links:
- db
depends_on:
- db
- graph
- redis
# twitter:
# restart: always
# image: ${DOCKER_IMAGE}
# command:
# - npm
# - run-script
# - twitter
# environment:
# LOGGING_LEVEL: ${LOGGING_LEVEL}
# DATABASE_URL: ${DATABASE_URL}
# TWITTER_BEARER_TOKEN: ${TWITTER_BEARER_TOKEN}
# links:
# - db
# depends_on:
# - db
# - graph
# - redis
# epic-games:
# restart: always
# image: ${DOCKER_IMAGE}
# command:
# - npm
# - run-script
# - epicGames
# environment:
# LOGGING_LEVEL: ${LOGGING_LEVEL}
# DATABASE_URL: ${DATABASE_URL}
# EPIC_GAMES_DEPLOYMENT_ID: ${EPIC_GAMES_DEPLOYMENT_ID}
# EPIC_GAMES_CLIENT_ID: ${EPIC_GAMES_CLIENT_ID}
# EPIC_GAMES_CLIENT_SECRET: ${EPIC_GAMES_CLIENT_SECRET}
# links:
# - db
# depends_on:
# - db
# - graph
# - redis
networks:
default:
name: supernet
external: true