[FEAT] Docker compose

This commit is contained in:
2026-01-21 13:37:34 +01:00
parent 08a0e7b35d
commit 862368f1df
3 changed files with 91 additions and 0 deletions

24
docker-compose.yml Normal file
View File

@@ -0,0 +1,24 @@
services:
fitra-backend:
build:
context: .
dockerfile: Dockerfile
container_name: fitra-backend
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- fitra-uploads:/app/uploads
environment:
- PORT=8080
- GIN_MODE=release
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
fitra-uploads:
driver: local