feat(service): add Yamtrack service (#5845)
This commit is contained in:
70
templates/compose/yamtrack-with-postgresql.yaml
Normal file
70
templates/compose/yamtrack-with-postgresql.yaml
Normal file
@@ -0,0 +1,70 @@
|
||||
# documentation: https://github.com/FuzzyGrim/Yamtrack/wiki
|
||||
# slogan: Yamtrack is a self hosted media tracker for movies, tv shows, anime, manga, video games and books.
|
||||
# tags: self-hosted, automation, tracker, media, movies, shows, anime, manga, games, books, comics
|
||||
# logo: svgs/yamtrack.svg
|
||||
# port: 8000
|
||||
|
||||
services:
|
||||
yamtrack:
|
||||
image: ghcr.io/fuzzygrim/yamtrack
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
environment:
|
||||
- SERVICE_FQDN_YAMTRACK_8000
|
||||
- TZ=${TZ:-Europe/Berlin}
|
||||
- SECRET=$SERVICE_PASSWORD_SECRET
|
||||
- REGISTRATION=${REGISTRATION_ENABLED:-true}
|
||||
- URLS=$SERVICE_FQDN_YAMTRACK
|
||||
- "REDIS_URL=redis://redis:6379"
|
||||
|
||||
- DB_HOST=db
|
||||
- DB_NAME=${POSTGRESQL_DATABASE:-yamtrack}
|
||||
- DB_USER=${SERVICE_USER_POSTGRESQL}
|
||||
- DB_PASSWORD=${SERVICE_PASSWORD_POSTGRESQL}
|
||||
- DB_PORT=5432
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
"CMD",
|
||||
"wget",
|
||||
"--no-verbose",
|
||||
"--tries=1",
|
||||
"--spider",
|
||||
"http://127.0.0.1:8000/health/",
|
||||
]
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
|
||||
db:
|
||||
image: postgres:16-alpine
|
||||
container_name: yamtrack-db
|
||||
environment:
|
||||
- POSTGRES_USER=${SERVICE_USER_POSTGRESQL}
|
||||
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRESQL}
|
||||
- POSTGRES_DB=${POSTGRESQL_DATABASE:-yamtrack}
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
|
||||
redis:
|
||||
image: "redis:7-alpine"
|
||||
volumes:
|
||||
- "redis_data:/data"
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- redis-cli
|
||||
- ping
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
|
||||
volumes:
|
||||
redis_data: null
|
||||
postgres_data: null
|
||||
Reference in New Issue
Block a user