/
docker-compose.yml
172 lines (160 loc) · 3.64 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
version: "3"
services:
registry:
tty: true
stdin_open: true
image: registry
build:
context: ./../registry
links:
- db
environment:
- APP_DBHOST=db
- REDIS_URL=redis://redis:6379/12
- PARALLEL_WORKERS=1
volumes:
- ./../registry:/opt/webapps/app
- ./shared/ca:/opt/ca
- tmp:/opt/webapps/app/tmp/
- ./../:/shared
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails server -b 0.0.0.0"
restart: always
depends_on:
- db
redis:
image: redis
volumes:
- ../../tmp/db:/var/lib/redis/data
sidekiq:
build:
context: ./../registry
links:
- db
command: 'bundle exec sidekiq'
volumes:
- ./../registry:/opt/webapps/app
environment:
- APP_DBHOST=db
- REDIS_URL=redis://redis:6379/12
depends_on:
- redis
epp:
tty: true
stdin_open: true
image: registry
links:
- db
environment:
- APP_DBHOST=db
- REDIS_URL=redis://redis:6379/12
volumes:
- ./../registry:/opt/webapps/app
- ./shared/ca:/opt/ca
- tmp:/opt/webapps/app/tmp/
command: bash -c "rm -f tmp/pids/epp.pid && bundle exec rails server --pid tmp/pids/epp.pid -b 0.0.0.0"
restart: on-failure
epp_proxy:
tty: true
stdin_open: true
image: epp_proxy
build:
context: ./../epp_proxy
links:
- db
ports:
- "700:700"
- "3333:3333"
volumes:
- ./../epp_proxy:/opt/erlang/epp_proxy
- ./shared/ca:/opt/ca
command: bash -c "rebar3 auto --config config/docker.config"
restart: on-failure
rest-whois:
tty: true
stdin_open: true
image: rest-whois
build:
context: ./../rest-whois
links:
- db
environment:
- APP_DBHOST=db
volumes:
- ./../rest-whois:/opt/webapps/app
- ./shared/ca:/opt/ca
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails server -b 0.0.0.0"
restart: on-failure
whois:
tty: true
stdin_open: true
ports:
- "43:43"
image: whois
build:
context: ./../whois
links:
- db
environment:
- APP_DBHOST=db
volumes:
- ./../whois:/opt/webapps/app
- ./shared/ca:/opt/ca
command: bash -c "rm -f tmp/pids/whois_server.pid && ruby whois.rb run"
restart: on-failure
auction_center:
tty: true
stdin_open: true
image: auction_center
build:
context: ./../auction_center
links:
- db
environment:
- APP_DBHOST=db
- HEALTHCHECK_USER=healthcheck
- HEALTHCHECK_PASSWORD=healthcheck
volumes:
- ./../auction_center:/opt/webapps/app
- ./shared/ca:/opt/ca
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails server -b 0.0.0.0"
restart: on-failure
auction_center_delayed_job:
image: auction_center
tty: true
stdin_open: true
links:
- db
environment:
- APP_DBHOST=db
volumes:
- ./../auction_center:/opt/webapps/app
- ./shared/ca:/opt/ca
command: bash -c "bundle exec rails jobs:work"
restart: on-failure
nginx:
image: nginx:1.19.0
tty: true
stdin_open: true
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/sites-enabled:/etc/nginx/sites-enabled
- ./shared/ca:/opt/ca
restart: on-failure
db:
image: postgres:9.6.21
volumes:
- pg:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=password
ports:
- "5433:5432"
restart: always
environment:
POSTGRES_DB: "db"
POSTGRES_HOST_AUTH_METHOD: "trust"
volumes:
pg:
tmp: