-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
99 lines (93 loc) · 2.9 KB
/
docker-compose.yaml
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
services:
nats:
ports:
- "4222:4222"
image: nats:2.10.21
restart: unless-stopped
command: "--config /config/nats-server.conf"
volumes:
- ./nats-config:/config
- ./nats-data:/data
traefik:
container_name: traefik
image: traefik:3.2
restart: unless-stopped
ports:
- "80:80"
#- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik.yml:/traefik.yml
labels:
- "traefik.enable=true"
wasm_httpd:
container_name: wasm_httpd
image: bevygap-spaceships-wasm
build:
context: ../bevygap-spaceships/
dockerfile: ../bevygap-spaceships/client/Dockerfile
restart: unless-stopped
depends_on:
- nats
labels:
- "traefik.enable=true"
- "traefik.http.routers.wasm-httpd.rule=PathPrefix(`/bevygap-spaceships`)"
- "traefik.http.middlewares.test-stripprefix.stripprefix.prefixes=/bevygap-spaceships"
- "traefik.http.routers.wasm-httpd.middlewares=test-stripprefix"
- "traefik.http.services.wasm-httpd.loadbalancer.server.port=80"
bevygap_webhook_sink:
container_name: bevygap_webhook_sink
image: bevygap_webhook_sink
build:
context: .
dockerfile: ./bevygap_webhook_sink/Dockerfile
restart: unless-stopped
depends_on:
- nats
environment:
NATS_USER: "webhook"
NATS_PASS: "webhook"
NATS_HOST: "nats"
NATS_INSECURE: "set"
labels:
- "traefik.enable=true"
- "traefik.http.routers.webhook.rule=PathPrefix(`/hook`)"
- "traefik.http.services.webhook.loadbalancer.server.port=3001"
bevygap_matchmaker:
container_name: bevygap_matchmaker
image: bevygap_matchmaker
build:
context: .
dockerfile: ./bevygap_matchmaker/Dockerfile
restart: unless-stopped
depends_on:
- nats
environment:
NATS_USER: "matchmaker"
NATS_PASS: "matchmaker"
NATS_HOST: "nats"
NATS_INSECURE: "set"
env_file:
- .edgegap.env
command: "--app-name bevygap-spaceships --app-version 1 --lightyear-protocol-id 80085 --lightyear-private-key '1,2,3, 4, 5, 6, 7, 8, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1'"
bevygap_matchmaker_httpd:
container_name: matchmaker_httpd
image: bevygap_matchmaker_httpd
build:
context: .
dockerfile: ./bevygap_matchmaker_httpd/Dockerfile
restart: unless-stopped
depends_on:
- nats
- bevygap_matchmaker
environment:
NATS_USER: "matchmaker_httpd"
NATS_PASS: "matchmaker_httpd"
NATS_HOST: "nats"
NATS_INSECURE: "set"
command: "--cors http://127.0.0.1"
labels:
- "traefik.enable=true"
- "traefik.http.routers.matchmaker.rule=PathPrefix(`/matchmaker`)"
- "traefik.http.services.matchmaker.loadbalancer.server.port=3000"
- "traefik.http.services.matchmaker.loadbalancer.responseforwarding.flushinterval=-1"