-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
55 lines (51 loc) · 1.2 KB
/
Copy pathcompose.yaml
File metadata and controls
55 lines (51 loc) · 1.2 KB
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
# SCRT — Docker Compose deployment
#
# Deploys the scrt control plane in serve mode behind Caddy (automatic HTTPS).
# Targets a single Linux host with Docker installed.
#
# Usage:
# cp .env.example .env # set SCRT_TOKEN and DOMAIN
# docker compose up -d
#
# The scrt port is NOT exposed to the host — only Caddy reaches it.
services:
scrt:
image: ghcr.io/alexrf45/scrt:latest
restart: unless-stopped
command: ["serve", "--addr", ":8080"]
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- scrt-workspaces:/workspaces
- scrt-config:/root
environment:
SCRT_WORKDIR: /workspaces
SCRT_TOKEN: ${SCRT_TOKEN:?SCRT_TOKEN must be set in .env}
expose:
- "8080"
networks:
- internal
caddy:
image: caddy:2-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp" # HTTP/3
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data
- caddy-config:/config
networks:
- internal
- external
depends_on:
- scrt
volumes:
scrt-workspaces:
scrt-config:
caddy-data:
caddy-config:
networks:
internal:
internal: true
external: