-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 798 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (35 loc) · 798 Bytes
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
services:
termblog:
build: .
container_name: termblog
restart: unless-stopped
ports:
- "2222:2222" # SSH
- "8080:8080" # HTTP
volumes:
- ./content:/app/content
- ./config.yaml:/app/config.yaml:ro
- termblog-ssh:/app/.ssh
- termblog-data:/app/data
environment:
- TZ=UTC
# Optional: Caddy reverse proxy for HTTPS
# Uncomment to enable
# caddy:
# image: caddy:alpine
# container_name: termblog-caddy
# restart: unless-stopped
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - ./Caddyfile:/etc/caddy/Caddyfile:ro
# - caddy-data:/data
# - caddy-config:/config
# depends_on:
# - termblog
volumes:
termblog-ssh:
termblog-data:
# caddy-data:
# caddy-config: