27 lines
555 B
YAML
27 lines
555 B
YAML
services:
|
|
fitra-backend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: fitra-backend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- fitra-uploads:/app/uploads
|
|
env_file:
|
|
- .env
|
|
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
|