01936716d3
Gokapi sat in maintenance mode since deploy because /setup was never completed and the template provided no headless-setup env. GOKAPI_USERNAME/PASSWORD configure it on first start; password is felhom-generated (deploy field, shown to customer). Fixes share.* maintenance page.
51 lines
1.5 KiB
YAML
51 lines
1.5 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
|
|
# Headless first-run setup: GOKAPI_USERNAME/PASSWORD take effect only on the first start (when
|
|
# Gokapi creates its config). Without these, Gokapi sits in "maintenance mode" until /setup is
|
|
# completed by hand. Password is felhom-generated (see .felhom.yml deploy field).
|
|
- GOKAPI_USERNAME=admin
|
|
- GOKAPI_PASSWORD=${GOKAPI_PASSWORD}
|
|
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
|