forked from arXiv/arxiv-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
118 lines (110 loc) · 2.92 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
version: '3'
services:
accounts-redis-sessions:
image: grokzen/redis-cluster:4.0.9
container_name: accounts-redis-sessions
networks:
- arxiv-accounts
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-maria:
image: mariadb:10.3
container_name: accounts-maria
networks:
- arxiv-accounts
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-accounts
environment:
MYSQL_USER: foouser
MYSQL_PASSWORD: foopass
MYSQL_ROOT_PASSWORD: foorootpassword
MYSQL_DATABASE: registry
command: ["mysqld", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci"]
accounts:
build:
context: ./
dockerfile: Dockerfile-accounts
container_name: accounts
environment:
REDIS_HOST: "accounts-redis-sessions"
REDIS_PORT: "7000"
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-accounts
depends_on:
- accounts-redis-sessions
- accounts-maria
registry:
build:
context: ./
dockerfile: Dockerfile-registry
container_name: registry
environment:
REDIS_HOST: "accounts-redis-sessions"
REDIS_PORT: "7000"
LOGLEVEL: 10
CLASSIC_DATABASE_URI: "mysql+mysqldb://foouser:foopass@registry-maria:3306/registry?charset=utf8"
JWT_SECRET: foosecret
CREATE_DB: 1
networks:
- arxiv-accounts
depends_on:
- accounts-redis-sessions
- registry-maria
authenticator:
build:
context: ./
dockerfile: Dockerfile-authenticator
container_name: authenticator
environment:
LOGLEVEL: 10
REDIS_HOST: "accounts-redis-sessions"
REDIS_PORT: "7000"
JWT_SECRET: foosecret
networks:
- arxiv-accounts
depends_on:
- accounts-redis-sessions
gateway:
build:
context: ./gateway/
dockerfile: Dockerfile
container_name: gateway
environment:
REDIS_ENDPOINT: "submission-redis:6379"
AWS_ACCESS_KEY_ID: "foo"
AWS_SECRET_ACCESS_KEY: "bar"
LOGLEVEL: 10
ports:
- "8000:8000"
networks:
- arxiv-accounts
depends_on:
- accounts-redis-sessions
- authenticator
- registry
- accounts
networks:
arxiv-accounts: