Rename docker-compose.yaml to compose.yaml and pull prebuilt images
All checks were successful
Build and Push Docker Images / build-and-push (push) Successful in 1m33s

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>
This commit is contained in:
2026-07-11 20:39:48 +02:00
parent 86cd77028c
commit 350ccdbaf7
2 changed files with 7 additions and 6 deletions

43
compose.yaml Normal file
View File

@@ -0,0 +1,43 @@
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}