-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
79 lines (78 loc) · 2.31 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
version: '3'
services:
web-client:
restart: on-failure
build:
context: .
dockerfile: applications/web-client/Dockerfile
image: registry.gitlab.com/maxjoehnk/remote-party-games/web-client:latest
networks:
- web
labels:
- "traefik.enable=true"
- "traefik.http.routers.party-games-${DEPLOYMENT-live}-web-client.rule=Host(`${DOMAIN-party.maxjoehnk.me}`)"
matchmaking:
restart: on-failure
build:
context: .
dockerfile: applications/matchmaking/Dockerfile
environment:
BROKER_URL: amqp://rabbitmq:5672
image: registry.gitlab.com/maxjoehnk/remote-party-games/matchmaking:latest
networks:
- web
volumes:
- ./game_assets:/src/applications/matchmaking/assets
labels:
- "traefik.enable=true"
- "traefik.http.routers.party-games-${DEPLOYMENT-live}-matchmaking.rule=Host(`${DOMAIN-party.maxjoehnk.me}`) && PathPrefix(`/api`)"
sockets:
restart: on-failure
build:
context: .
dockerfile: applications/sockets/Dockerfile
environment:
BROKER_URL: amqp://rabbitmq:5672
image: registry.gitlab.com/maxjoehnk/remote-party-games/sockets:latest
networks:
- web
labels:
- "traefik.enable=true"
- "traefik.http.routers.party-games-${DEPLOYMENT-live}-matchmaking.rule=Host(`${DOMAIN-party.maxjoehnk.me}`) && PathPrefix(`/api/socket`)"
image:
restart: on-failure
build:
context: .
dockerfile: applications/image/Dockerfile
image: registry.gitlab.com/maxjoehnk/remote-party-games/image:latest
environment:
MATCHMAKING_URL: http://matchmaking:8090
networks:
- web
volumes:
- images:/etc/party-games/storage
labels:
- "traefik.enable=true"
- "traefik.http.routers.party-games-${DEPLOYMENT-live}-image.rule=Host(`${DOMAIN-party.maxjoehnk.me}`) && PathPrefix(`/api/image`)"
rabbitmq:
restart: on-failure
image: rabbitmq:3-management-alpine
networks:
- web
labels:
- "traefik.enable=true"
- "traefik.http.routers.party-games-${DEPLOYMENT-live}-rabbit.rule=Host(`${DOMAIN-party.maxjoehnk.me}`)"
ports:
- "15672:15672"
- "5672:5672"
zipkin:
restart: on-failure
image: openzipkin/zipkin
ports:
- "9411:9411"
volumes:
images:
networks:
web:
external:
name: web