-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
197 lines (181 loc) · 5.56 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
version: '3'
services:
submission-maria:
image: mariadb:10.3
container_name: submission-maria
networks:
- arxiv-submission-local
environment:
MYSQL_USER: foouser
MYSQL_PASSWORD: foopass
MYSQL_ROOT_PASSWORD: foorootpassword
MYSQL_DATABASE: submission
command: ["mysqld", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci"]
submission-redis:
image: redis
container_name: submission-redis
networks:
- arxiv-submission-local
submission-metadata:
build:
context: ./
dockerfile: Dockerfile-metadata
container_name: metadata
environment:
BASE_SERVER: localhost:8000
EXTERNAL_URL_SCHEME: http
REDIS_ENDPOINT: "submission-redis:6379"
AWS_ACCESS_KEY_ID: "foo"
AWS_SECRET_ACCESS_KEY: "bar"
LOGLEVEL: 10
CLASSIC_DATABASE_URI: "mysql+mysqldb://foouser:foopass@submission-maria:3306/submission?charset=utf8"
JWT_SECRET: foosecret
networks:
- arxiv-submission-local
depends_on:
- submission-redis
- submission-maria
# - submission-localstack
# accounts-redis-sessions:
# image: grokzen/redis-cluster:4.0.9
# container_name: accounts-redis-sessions
# networks:
# - arxiv-submission-local
# ports:
# - '127.0.0.1:7000:7000'
# - '127.0.0.1:7001:7001'
# - '127.0.0.1:7002:7002'
# - '127.0.0.1:7003:7003'
# - '127.0.0.1:7004:7004'
# - '127.0.0.1:7005:7005'
# - '127.0.0.1:7006:7006'
# environment:
# IP: "0.0.0.0"
accounts-redis-sessions:
image: redis:4
container_name: accounts-redis-sessions
networks:
- arxiv-submission-local
accounts-maria:
image: mariadb:10.3
container_name: accounts-maria
networks:
- arxiv-submission-local
environment:
MYSQL_USER: foouser
MYSQL_PASSWORD: foopass
MYSQL_ROOT_PASSWORD: foorootpassword
MYSQL_DATABASE: accounts
command: ["mysqld", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci"]
registry-maria:
image: mariadb:10.3
container_name: registry-maria
networks:
- arxiv-submission-local
environment:
BASE_SERVER: localhost:8000
EXTERNAL_URL_SCHEME: http
MYSQL_USER: foouser
MYSQL_PASSWORD: foopass
MYSQL_ROOT_PASSWORD: foorootpassword
MYSQL_DATABASE: registry
command: ["mysqld", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci"]
# filemanager-maria:
# image: mariadb:10.3
# container_name: filemanager-maria
# networks:
# - arxiv-submission-local
# environment:
# BASE_SERVER: localhost:8000
# EXTERNAL_URL_SCHEME: http
# MYSQL_USER: foouser
# MYSQL_PASSWORD: foopass
# MYSQL_ROOT_PASSWORD: foorootpassword
# MYSQL_DATABASE: filemanager
# command: ["mysqld", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci"]
accounts:
image: arxiv/accounts:0.3
container_name: accounts
environment:
BASE_SERVER: localhost:8000
EXTERNAL_URL_SCHEME: http
REDIS_HOST: "accounts-redis-sessions"
REDIS_PORT: "6379"
REDIS_CLUSTER: 0
LOGLEVEL: 10
CLASSIC_DATABASE_URI: "mysql+mysqldb://foouser:foopass@accounts-maria:3306/accounts?charset=utf8"
JWT_SECRET: foosecret
CAPTCHA_SECRET: foocaptchasecret
CAPTCHA_FONT: /opt/arxiv/fonts/montserrat.ttf
CREATE_DB: 1
networks:
- arxiv-submission-local
depends_on:
- accounts-redis-sessions
- accounts-maria
registry:
image: arxiv/registry:0.1
container_name: registry
environment:
BASE_SERVER: localhost:8000
EXTERNAL_URL_SCHEME: http
REDIS_HOST: "accounts-redis-sessions"
REDIS_PORT: "6379"
REDIS_CLUSTER: "0"
LOGLEVEL: 10
REGISTRY_DATABASE_URI: "mysql+mysqldb://foouser:foopass@registry-maria:3306/registry?charset=utf8"
JWT_SECRET: foosecret
CREATE_DB: 1
AUTHLIB_INSECURE_TRANSPORT: 1
networks:
- arxiv-submission-local
depends_on:
- accounts-redis-sessions
- registry-maria
# filemanager:
# image: arxiv/filemanager:0.1
# container_name: filemanager
# command: uwsgi --http-socket :8000 -M -t 3000 --manage-script-name --buffer-size 65535 --processes 8 --threads 1 --async 100 --ugreen --mount /=wsgi.py --logformat "%(addr) %(addr) - %(user_id)|%(session_id) [%(rtime)] [%(uagent)] \"%(method) %(uri) %(proto)\" %(status) %(size) %(micros) %(ttfb)"
#
# environment:
# BASE_SERVER: localhost:8000
# EXTERNAL_URL_SCHEME: http
# LOGLEVEL: 10
# FILE_MANAGMENT_SQLALCHEMY_DATABASE_URI: "mysql+mysqldb://foouser:foopass@filemanager-maria:3306/filemanager?charset=utf8"
# JWT_SECRET: foosecret
# CREATE_DB: 1
# networks:
# - arxiv-submission-local
# depends_on:
# - filemanager-maria
authenticator:
image: arxiv/authenticator:0.1
container_name: authenticator
environment:
BASE_SERVER: localhost:8000
EXTERNAL_URL_SCHEME: http
LOGLEVEL: 10
REDIS_HOST: "accounts-redis-sessions"
REDIS_PORT: "6379"
REDIS_CLUSTER: "0"
JWT_SECRET: foosecret
networks:
- arxiv-submission-local
depends_on:
- accounts-redis-sessions
gateway:
build:
context: ./gateway/
dockerfile: Dockerfile
container_name: gateway
ports:
- "8000:8000"
networks:
- arxiv-submission-local
depends_on:
- accounts-redis-sessions
- authenticator
- registry
- accounts
networks:
arxiv-submission-local: