mirror of
https://github.com/Dvorinka/Trackeep.git
synced 2026-06-03 20:12:58 +00:00
5da6360ed9
Transition from a multi-service architecture to an all-in-one container by bundling PostgreSQL directly within the Docker image. This simplifies deployment, especially for environments like CasaOS, by removing the need for an external database service. - Update Dockerfile to install and configure PostgreSQL - Implement database initialization logic in docker-entrypoint.sh - Update .env.example to reflect auto-generation of credentials - Simplify docker-compose.yml to a single service - Update README.md with new deployment instructions and architecture details
32 lines
875 B
YAML
32 lines
875 B
YAML
icon: https://github.com/Dvorinka/Trackeep/raw/main/trackeepfavi_bg.png
|
|
|
|
services:
|
|
trackeep:
|
|
image: ghcr.io/dvorinka/trackeep:latest
|
|
container_name: trackeep
|
|
ports:
|
|
- "${HOST_PORT:-8080}:8080"
|
|
environment:
|
|
DB_PASSWORD: ${DB_PASSWORD:-}
|
|
DB_USER: ${DB_USER:-trackeep}
|
|
DB_NAME: ${DB_NAME:-trackeep}
|
|
JWT_SECRET: ${JWT_SECRET:-}
|
|
GIN_MODE: release
|
|
CORS_ALLOWED_ORIGINS: ${CORS_ALLOWED_ORIGINS:-*}
|
|
volumes:
|
|
- trackeep_postgres:/var/lib/postgresql/data
|
|
- trackeep_uploads:/app/uploads
|
|
- trackeep_data:/data
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 60s
|
|
|
|
volumes:
|
|
trackeep_postgres:
|
|
trackeep_uploads:
|
|
trackeep_data:
|