Add CI/CD pipeline and prod docker-compose
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 30s

This commit is contained in:
vrubel 2026-06-09 13:46:58 +00:00
parent 8542ce8e01
commit 67dd7bde3c
2 changed files with 79 additions and 0 deletions

22
docker-compose.prod.yml Normal file
View file

@ -0,0 +1,22 @@
services:
backend:
image: 192.168.8.174:3000/vrubel/schedule-son:latest
ports:
- "8123:8000"
volumes:
- ./data:/app/data
env_file:
- .env
environment:
- TZ=Europe/Moscow
- DATABASE_PATH=/app/data/schedule.db
restart: unless-stopped
depends_on:
- init-db
init-db:
image: alpine:latest
volumes:
- ./data:/data
command: sh -c "mkdir -p /data && touch /data/.gitkeep"
restart: "no"