-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
135 lines (122 loc) · 3 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
version: '2'
services:
proxy:
image: traefik:v1.4
ports:
- "80:80"
- "12005:8088"
volumes:
- "./proxy/dev.toml:/etc/traefik/traefik.toml"
gateway:
image: traefik:v1.4
ports:
- "8888:8888"
- "8088:8088"
volumes:
- "./gateway/dev.toml:/etc/traefik/traefik.toml"
- "/var/run/docker.sock:/var/run/docker.sock"
labels:
- "traefik.backend=gateway"
redis:
image: redis:3.2.8-alpine
ports:
- 6379:6379
broadcaster:
build:
context: ./broadcaster
volumes:
- "./broadcaster:/code"
environment:
- DEBUGMODE=debug
labels:
- "traefik.frontend.rule=PathPrefixStrip:/broadcaster"
- "traefik.port=9400"
- "traefik.backend=broadcaster"
data-service:
build:
dockerfile: Dockerfile-dev
context: ./data-service
volumes:
- "./data-service:/src/app"
labels:
- "traefik.frontend.rule=PathPrefixStrip:/data-service"
- "traefik.port=3721"
- "traefik.backend=data-service"
delivery:
build:
dockerfile: Dockerfile-dev
context: ./delivery
volumes:
- "./delivery:/src/app"
labels:
- "traefik.frontend.rule=PathPrefixStrip:/delivery"
- "traefik.port=3000"
- "traefik.backend=delivery"
frontend:
build:
dockerfile: Dockerfile-dev
context: ./frontend
ports:
- "8080:8080"
volumes:
- ./frontend:/src/app
- /src/app/node_modules
- ./physics:/src/physics
labels:
- "traefik.frontend.rule=PathPrefixStrip:/frontend"
- "traefik.port=8080"
- "traefik.backend=frontend"
games:
build:
context: ./gamemanager
volumes:
- "./gamemanager:/code"
environment:
- PYTHONUNBUFFERED=0
- SITE_BASE_URL=http://localhost
- DEBUGMODE=debug
labels:
- "traefik.frontend.rule=PathPrefixStrip:/games"
- "traefik.port=5000"
- "traefik.backend=games"
scores:
build:
context: ./scores
volumes:
- "./scores:/code"
environment:
- PYTHONUNBUFFERED=0
- DEBUGMODE=debug
labels:
- "traefik.frontend.rule=PathPrefixStrip:/scores"
- "traefik.port=5000"
- "traefik.backend=scores"
physics:
build:
dockerfile: Dockerfile-dev
context: ./physics
volumes:
- "./physics:/src/app"
labels:
- "traefik.frontend.rule=PathPrefixStrip:/physics"
- "traefik.port=3005"
- "traefik.backend=physics"
results:
build:
dockerfile: Dockerfile-dev
context: ./results
volumes:
- "./results:/app"
command: bash -c "cd /app && dotnet restore && dotnet watch run --server.urls http://*:5000"
labels:
- "traefik.frontend.rule=PathPrefixStrip:/results"
- "traefik.port=5000"
- "traefik.backend=results"
humanizer:
image: alkukampela/humanizer
ports:
- 12006:8080
labels:
- "traefik.frontend.rule=PathPrefixStrip:/humanizer"
- "traefik.port=8080"
- "traefik.backend=humanizer"