-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
58 lines (58 loc) · 1.18 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
version: '2.4'
services:
backend-redis:
image: redis
networks:
- back
backend-soxy-server:
build:
context: .
image: xandout/soxy
networks:
- back
command: serve -p :8080
depends_on:
- backend-redis
frontend-nginx:
image: nginx
ports:
- 8080:8080
networks:
- front
- back
command:
- /bin/bash
- -c
- |
echo $$NGINX_CONF > /etc/nginx/conf.d/soxy.conf
nginx -g "daemon off;"
environment:
- NGINX_CONF=
server {
server_name localhost;
listen 8080;
location / {
proxy_set_header Upgrade $$http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://backend-soxy-server:8080;
}
}
depends_on:
- backend-redis
- backend-soxy-server
frontend-soxy-client:
build:
context: .
image: xandout/soxy
networks:
- front
command: proxy -U ws://frontend-nginx:8080 -L :6379 -R backend-redis:6379
ports:
- 6379:6379
depends_on:
- backend-redis
- backend-soxy-server
- frontend-nginx
networks:
front:
back: