-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
177 lines (176 loc) · 5.71 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
167
168
169
170
171
172
173
174
175
176
177
volumes:
certbot:
services:
indexer:
build:
context: netkan/.
target: dev
environment:
SSH_KEY: ${CKAN_NETKAN_SSHKEY}
CKANMETA_REMOTES: ${CKAN_METADATA_PATHS}
CKAN_USER: ${CKAN_METADATA_USER}
CKAN_REPOS: ${CKAN_METADATA_REPOS}
AWS_DEFAULT_REGION: ${CKAN_AWS_DEFAULT_REGION}
AWS_SECRET_ACCESS_KEY: ${CKAN_AWS_SECRET_ACCESS_KEY}
AWS_ACCESS_KEY_ID: ${CKAN_AWS_ACCESS_KEY_ID}
GH_Token: ${CKAN_GH_Token}
SQS_QUEUE: OutboundDev.fifo
SQS_TIMEOUT: 30
STATUS_DB: DevMultiKANStatus
DISCORD_WEBHOOK_ID: ${DISCORD_WEBHOOK_ID}
DISCORD_WEBHOOK_TOKEN: ${DISCORD_WEBHOOK_TOKEN}
volumes:
- ./netkan:/home/netkan/netkan
command: indexer
scheduler:
build:
context: netkan/.
target: dev
environment:
GH_Token: ${CKAN_GH_Token}
NETKAN_REMOTES: ${NETKAN_METADATA_PATHS}
SSH_KEY: ${CKAN_NETKAN_SSHKEY}
CKANMETA_REMOTES: ${CKAN_METADATA_PATHS}
AWS_DEFAULT_REGION: ${CKAN_AWS_DEFAULT_REGION}
AWS_SECRET_ACCESS_KEY: ${CKAN_AWS_SECRET_ACCESS_KEY}
AWS_ACCESS_KEY_ID: ${CKAN_AWS_ACCESS_KEY_ID}
INFLATION_QUEUES: ksp=InboundDevKsp.fifo ksp2=InboundDevKsp2.fifo
MAX_QUEUED: 1
DISCORD_WEBHOOK_ID: ${DISCORD_WEBHOOK_ID}
DISCORD_WEBHOOK_TOKEN: ${DISCORD_WEBHOOK_TOKEN}
volumes:
- ./netkan:/home/netkan/netkan
command: scheduler --dev
inflator:
image: kspckan/inflator
environment:
QUEUES: InboundDevKsp.fifo,OutboundDev.fifo
GAME: KSP
GH_Token: ${CKAN_GH_Token}
AWS_REGION: ${CKAN_AWS_DEFAULT_REGION}
AWS_SECRET_ACCESS_KEY: ${CKAN_AWS_SECRET_ACCESS_KEY}
AWS_ACCESS_KEY_ID: ${CKAN_AWS_ACCESS_KEY_ID}
volumes:
# Docker will create this with root perms if
# it's not created first. First user on most
# distros is 1000:1000, which will match the
# user in the container.
- ${HOME}/ckan_cache:/home/netkan/ckan_cache
inflator-ksp2:
image: kspckan/inflator
environment:
QUEUES: InboundDevKsp2.fifo,OutboundDev.fifo
GAME: KSP2
GH_Token: ${CKAN_GH_Token}
AWS_REGION: ${CKAN_AWS_DEFAULT_REGION}
AWS_SECRET_ACCESS_KEY: ${CKAN_AWS_SECRET_ACCESS_KEY}
AWS_ACCESS_KEY_ID: ${CKAN_AWS_ACCESS_KEY_ID}
volumes:
# Docker will create this with root perms if
# it's not created first. First user on most
# distros is 1000:1000, which will match the
# user in the container.
- ${HOME}/ckan_cache:/home/netkan/ckan_cache
webhooks:
build:
context: netkan/.
target: dev
environment:
XKAN_GHSECRET: test
SSH_KEY: ${CKAN_NETKAN_SSHKEY}
NETKAN_REMOTES: ${NETKAN_METADATA_PATHS}
INFLATION_SQS_QUEUES: ksp=InboundDevKsp.fifo ksp2=InboundDevKsp2.fifo
MIRROR_SQS_QUEUE: MirroringDev.fifo
AWS_DEFAULT_REGION: ${CKAN_AWS_DEFAULT_REGION}
AWS_SECRET_ACCESS_KEY: ${CKAN_AWS_SECRET_ACCESS_KEY}
AWS_ACCESS_KEY_ID: ${CKAN_AWS_ACCESS_KEY_ID}
DISCORD_WEBHOOK_ID: ${DISCORD_WEBHOOK_ID}
DISCORD_WEBHOOK_TOKEN: ${DISCORD_WEBHOOK_TOKEN}
CKANMETA_REMOTES: ${CKAN_METADATA_PATHS}
CKAN_USER: ${CKAN_METADATA_USER}
CKAN_REPOS: ${CKAN_METADATA_REPOS}
entrypoint: .local/bin/gunicorn
command: -b 0.0.0.0:5000 --access-logfile - "netkan.webhooks:create_app()"
adder:
build:
context: netkan/.
target: dev
environment:
SQS_QUEUE: AddingDev.info
NETKAN_REMOTES: ${NETKAN_METADATA_PATHS}
NETKAN_USER: ${CKAN_NETKAN_USER}
NETKAN_REPO: ${CKAN_NETKAN_REPO}
command: spacedock-adder
mirrorer:
build:
context: netkan/.
target: dev
environment:
SQS_QUEUE: MirroringDev.fifo
SQS_TIMEOUT: 30
AWS_DEFAULT_REGION: ${CKAN_AWS_DEFAULT_REGION}
AWS_SECRET_ACCESS_KEY: ${CKAN_AWS_SECRET_ACCESS_KEY}
AWS_ACCESS_KEY_ID: ${CKAN_AWS_ACCESS_KEY_ID}
CKANMETA_REMOTES: ${CKAN_METADATA_PATHS}
IA_access: test
IA_secret: test
IA_collection: test
volumes:
- ${HOME}/ckan_cache:/home/netkan/ckan_cache
command: mirrorer
status:
build:
context: netkan/.
target: dev
environment:
STATUS_DB: DevMultiKANStatus
STATUS_BUCKET: ckan-test-status
AWS_DEFAULT_REGION: ${CKAN_AWS_DEFAULT_REGION}
AWS_SECRET_ACCESS_KEY: ${CKAN_AWS_SECRET_ACCESS_KEY}
AWS_ACCESS_KEY_ID: ${CKAN_AWS_ACCESS_KEY_ID}
STATUS_INTERVAL: 0
DISCORD_WEBHOOK_ID: ${DISCORD_WEBHOOK_ID}
DISCORD_WEBHOOK_TOKEN: ${DISCORD_WEBHOOK_TOKEN}
volumes:
- ./netkan:/home/netkan/netkan
command: export-status-s3
certbot:
image: certbot/dns-route53
command: certonly -n --agree-tos --email ${CKAN_EMAIL} --dns-route53 -d local.test.ksp-ckan.space --test-cert
environment:
AWS_DEFAULT_REGION: ${CKAN_AWS_DEFAULT_REGION}
AWS_SECRET_ACCESS_KEY: ${CKAN_AWS_SECRET_ACCESS_KEY}
AWS_ACCESS_KEY_ID: ${CKAN_AWS_ACCESS_KEY_ID}
volumes:
- certbot:/etc/letsencrypt
nginx:
build:
context: nginx/.
ports:
- "8080:80"
- "8443:443"
volumes:
- certbot:/etc/letsencrypt
- ./nginx/nginx-dev.conf:/etc/nginx/nginx.conf
clean:
build:
context: netkan/.
target: dev
volumes:
- ./netkan:/home/netkan/netkan
- ${HOME}/ckan_cache:/home/netkan/ckan_cache
command: clean-cache --days 1
counts:
build:
context: netkan/.
target: dev
environment:
SSH_KEY: ${CKAN_NETKAN_SSHKEY}
NETKAN_REMOTES: ${NETKAN_METADATA_PATHS}
CKANMETA_REMOTES: ${CKAN_METADATA_PATHS}
GH_Token: ${CKAN_GH_Token}
DISCORD_WEBHOOK_ID: ${DISCORD_WEBHOOK_ID}
DISCORD_WEBHOOK_TOKEN: ${DISCORD_WEBHOOK_TOKEN}
volumes:
- ./netkan:/home/netkan/netkan
command: download-counter