Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 1.81 KB
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (38 loc) · 1.81 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
# Roastgate drives the nginx installed on the host.
# privileged + pid: host lets it run `nginx` and `certbot` in the host namespaces (nsenter).
# the volumes below let it read and write the nginx configuration and the certificates,
# and read the nginx access logs.
# Read the security notes in README.md before exposing the port beyond 127.0.0.1.
# The project and the volume have fixed names, so the account survives a rebuild whatever the folder you cloned into.
# Update with `docker compose pull && docker compose up -d` (or `docker compose up -d --build` to build from source).
# Never use `docker compose down -v`: it deletes the account and the backup history.
name: roastgate
services:
roastgate:
image: ghcr.io/byteroast/roastgate:latest
build: .
container_name: roastgate
restart: unless-stopped
privileged: true
pid: host
ports:
- "127.0.0.1:8181:8181"
environment:
# Optional: fix the setup token instead of reading it from `docker logs roastgate` (16+ characters).
# ROASTGATE_SETUP_TOKEN: "change-me-to-a-long-random-value"
# Set to "true" when you reach Roastgate through HTTPS (marks the session cookie Secure).
# ROASTGATE_SECURE_COOKIES: "true"
# Set to "true" only behind your own reverse proxy, so the client IP is read from X-Forwarded-For.
# ROASTGATE_TRUST_FORWARDED_HEADERS: "true"
# Set to "true" to download the DB-IP city database (about 60 MB, refreshed monthly) for the traffic map.
# ROASTGATE_GEOIP_AUTO_UPDATE: "true"
TZ: Europe/Paris
volumes:
- /etc/nginx:/etc/nginx
- /etc/letsencrypt:/etc/letsencrypt
- /var/www/certbot:/var/www/certbot
- /var/log/nginx:/var/log/nginx:ro
- roastgate-data:/data
volumes:
roastgate-data:
name: roastgate-data