690c8dd0b8
Verified against Gokapi docs + the v1.9.6 binary: no env-var headless admin setup exists in any version. Non-interactive setup requires a pre-seeded config.json + --deployment-password. Reverting the non-functional env so the template isn't misleading; choosing a real fix path with the user.
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
# Gokapi - Ideiglenes fájlmegosztás lejáró linkekkel
|
|
# Domain: ${SUBDOMAIN}.${DOMAIN}
|
|
# Database: None (file-based)
|
|
# RAM: ~30M (mem_limit: 128M) | Pi-compatible: Yes
|
|
#
|
|
# Environment variables:
|
|
# DOMAIN - Your domain (e.g., demo-felhom.eu)
|
|
|
|
services:
|
|
gokapi:
|
|
image: f0rc3/gokapi:v1.9.6
|
|
container_name: gokapi
|
|
restart: unless-stopped
|
|
environment:
|
|
- TZ=Europe/Budapest
|
|
volumes:
|
|
- gokapi_data:/app/data
|
|
- gokapi_config:/app/config
|
|
networks:
|
|
- traefik-public
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 128M
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--spider", "-q", "http://localhost:53842"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 30s
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.gokapi.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
|
|
- "traefik.http.routers.gokapi.entrypoints=websecure"
|
|
- "traefik.http.routers.gokapi.tls=true"
|
|
- "traefik.http.routers.gokapi.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.gokapi.loadbalancer.server.port=53842"
|
|
|
|
volumes:
|
|
gokapi_config:
|
|
gokapi_data:
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true
|