Files
whowhat/compose.yaml
Kacper 350ccdbaf7
All checks were successful
Build and Push Docker Images / build-and-push (push) Successful in 1m33s
Rename docker-compose.yaml to compose.yaml and pull prebuilt images
Use the images published by the new Gitea Actions workflow instead
of building locally, so deploys just pull the latest tag.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-11 20:39:48 +02:00

44 lines
1.2 KiB
YAML

services:
backend:
image: gitea.kzbikowski.pl/kzbkowski/whowhat/backend:latest
environment:
JWT_SECRET: ${JWT_SECRET:-please-change-this-secret-in-.env}
DATABASE_PATH: /app/data/app.db
PORT: 3000
FRONTEND_URL: ${FRONTEND_URL:-https://example.com}
SMTP_HOST: ${SMTP_HOST:-}
SMTP_PORT: ${SMTP_PORT:-587}
SMTP_SECURE: ${SMTP_SECURE:-false}
SMTP_USER: ${SMTP_USER:-}
SMTP_PASS: ${SMTP_PASS:-}
SMTP_FROM: ${SMTP_FROM:-}
volumes:
- ./sqlite:/app/data
networks:
- default
restart: unless-stopped
frontend:
image: gitea.kzbikowski.pl/kzbkowski/whowhat/frontend:latest
ports:
- "8856:80"
depends_on:
- backend
networks:
- default
- traefik_public
labels:
- traefik.enable=true
- traefik.docker.network=traefik_public
- traefik.http.routers.whowhat.rule=Host(`${DOMAIN:-example.com}`)
- traefik.http.routers.whowhat.entrypoints=websecure
- traefik.http.routers.whowhat.tls.certresolver=tls-resolver
- traefik.http.routers.whowhat.tls=true
restart: unless-stopped
networks:
default:
traefik_public:
external: true
name: ${TRAEFIK_NETWORK:-traefik_public}