-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
71 lines (66 loc) · 2.22 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
version: "3.3"
services:
traefik:
image: "traefik:v2.9"
container_name: "traefik"
command:
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.le.acme.email=hey@benro.dev"
- "--certificatesresolvers.le.acme.storage=/acme.json"
- "--certificatesresolvers.le.acme.httpchallenge=true"
- "--certificatesresolvers.le.acme.httpchallenge.entrypoint=web"
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./traefik/acme.json:/acme.json"
redis:
image: redis:latest
ports:
- 6379:6379
sorobix-api-rs:
image: "sorobix-api-rs:latest"
container_name: "sorobix-api-rs"
environment:
- REDIS=redis:6379
labels:
- "traefik.enable=true"
- traefik.http.routers.whoami.rule=Host(`backend.sorobix.xyz`) && PathPrefix(`/api`)
- "traefik.http.routers.whoami.entrypoints=websecure"
- "traefik.http.routers.whoami.tls=true"
- "traefik.http.routers.whoami.tls.certresolver=le"
depends_on:
- redis
wasm-handler:
image: "wasm-handler:latest"
container_name: "wasm-handler"
environment:
- WS_PORT=3001
- REDIS_HOST=redis:6379
- REDIS_PASSWORD=
- REDIS_DB=0
- REDIS_KEY_LIFETIME=1h
labels:
- "traefik.enable=true"
- traefik.http.routers.handler.rule=Host(`backend.sorobix.xyz`) && PathPrefix(`/ws`)
- "traefik.http.routers.handler.entrypoints=websecure"
- "traefik.http.routers.handler.tls=true"
- "traefik.http.routers.handler.tls.certresolver=le"
depends_on:
- redis
sorobix-formatter:
image: "sorobix-formatter:latest"
container_name: "sorobix-formatter"
labels:
- "traefik.enable=true"
- traefik.http.routers.formatter.rule=Host(`backend.sorobix.xyz`) && PathPrefix(`/formatter`)
- "traefik.http.routers.formatter.entrypoints=websecure"
- "traefik.http.routers.formatter.tls=true"
- "traefik.http.routers.formatter.tls.certresolver=le"