-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (54 loc) · 1.41 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
version: '3'
services:
gateway:
build: packages/remote-gateway
image: docker.pkg.github.com/rustic-music-player/remote-gateway/gateway:latest
networks:
- remote_gateway
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- "SSH_PORT=2222"
- "PUBLIC_URL=http://${DOMAIN}"
- "REDIS_URL=redis://kv"
- "CONTAINER_IMAGE=nginx:alpine"
- "CLOUDFLARE_EMAIL=${CLOUDFLARE_EMAIL}"
- "CLOUDFLARE_API_TOKEN=${CLOUDFLARE_API_TOKEN}"
- "CLOUDFLARE_ZONE_ID=${CLOUDFLARE_ZONE_ID}"
- "CLOUDFLARE_ZONE=${DOMAIN}"
labels:
- "traefik.enable=true"
- "traefik.http.routers.gateway.rule=Host(`${DOMAIN}`)"
proxy:
build: packages/proxy
image: docker.pkg.github.com/rustic-music-player/remote-gateway/proxy:latest
networks:
- remote_gateway
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 80:80
- 443:443
ssh-proxy:
image: farmer1992/sshpiperd
volumes:
- ssh_tunnels:/var/sshpiper
ports:
- 2222:2222
networks:
- remote_gateway
ssh-proxy-api:
image: docker.pkg.github.com/rustic-music-player/remote-gateway/ssh-proxy-api:latest
build: packages/ssh-proxy
networks:
- remote_gateway
volumes:
- ssh_tunnels:/var/sshpiper
kv:
image: redis:6
networks:
- remote_gateway
volumes:
ssh_tunnels:
networks:
remote_gateway: