-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (38 loc) · 1.33 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
---
version: "3.3"
services:
traefik:
image: "traefik:v2.10"
container_name: "traefik"
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
strfry:
image: relayable/strfry:latest
container_name: "strfry"
restart: always
volumes:
- ./strfry/config/strfry.conf:/etc/strfry.conf
- ./strfry/db:/app/strfry-db
- ./strfry/plugins:/app/plugins
labels:
- "traefik.enable=true"
- "traefik.http.routers.strfry.rule=Headers(`Accept`, `application/nostr+json`) || HeadersRegexp(`Connection`, `(?i)Upgrade`)" #" && HeadersRegexp(`Upgrade`, `websocket`)"
- "traefik.http.routers.strfry.entrypoints=web"
- "traefik.http.services.strfry.loadbalancer.server.port=7777"
redirect-service:
image: nginx:alpine
container_name: "redirect-service"
restart: always
volumes:
- ./redirect-service/nginx-redirect.conf:/etc/nginx/conf.d/default.conf
labels:
- "traefik.enable=true"
- "traefik.http.routers.redirect-service.rule=Host(`localhost`)"
- "traefik.http.routers.redirect-service.entrypoints=web"
- "traefik.http.services.redirect-service.loadbalancer.server.port=80"