v1.0.0
This commit is contained in:
43
docker-compose.yaml
Normal file
43
docker-compose.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
services:
|
||||
backend:
|
||||
build: ./backend
|
||||
environment:
|
||||
JWT_SECRET: ${JWT_SECRET:-please-change-this-secret-in-.env}
|
||||
DATABASE_PATH: /app/data/app.db
|
||||
PORT: 3000
|
||||
FRONTEND_URL: ${FRONTEND_URL:-https://ktoco.kzbikowski.pl}
|
||||
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:
|
||||
build: ./frontend
|
||||
ports:
|
||||
- "8856:80"
|
||||
depends_on:
|
||||
- backend
|
||||
networks:
|
||||
- default
|
||||
- traefik_public
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.docker.network=traefik_public
|
||||
- traefik.http.routers.ktoco.rule=Host(`${DOMAIN:-ktoco.kzbikowski.pl}`)
|
||||
- traefik.http.routers.ktoco.entrypoints=websecure
|
||||
- traefik.http.routers.ktoco.tls.certresolver=tls-resolver
|
||||
- traefik.http.routers.ktoco.tls=true
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
default:
|
||||
traefik_public:
|
||||
external: true
|
||||
name: ${TRAEFIK_NETWORK:-traefik_public}
|
||||
Reference in New Issue
Block a user