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
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:
43
compose.yaml
Normal file
43
compose.yaml
Normal 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}
|
||||
Reference in New Issue
Block a user