services/JellyStat.yaml
2025-06-19 18:16:08 -05:00

61 lines
1.6 KiB
YAML
Executable file

services:
jellystat-db:
image: postgres:15.2
hostname: postgres
container_name: postgres
environment:
- POSTGRES_DB='jfstat'
- POSTGRES_USER=jellystat
- POSTGRES_PASSWORD=jellystat
- PUID=1001
- PGID=998
- TZ=America/Chicago
volumes:
- /DockerVol/jellystat/postgres-data:/var/lib/postgresql/data # Mounting the volume
networks:
- netgrimoire
deploy:
placement:
constraints:
- node.hostname == bruce
jellystat:
image: cyfershepard/jellystat:latest
hostname: jellystat
container_name: jellystat
environment:
POSTGRES_USER: jellystat
POSTGRES_PASSWORD: jellystat
POSTGRES_IP: jellystat-db
POSTGRES_PORT: 5432
JWT_SECRET: 'my-secret-jwt-key'
ports:
- "3015:3000" #Server Port
volumes:
- /DockerVol/jellystat/backup-data:/app/backend/backup-data # Mounting the volume
depends_on:
- jellystat-db
networks:
- netgrimoire
deploy:
labels:
- homepage.group=Library
- homepage.name=JellyStat
- homepage.icon=jellystat.png
- homepage.href=http://jellystat.netgrimoire.com
- homepage.description=Jelly Stats
- kuma.jellystat.http.name="JellyStat"
- kuma.jellystat.http.url=http://jellystat:3000
- caddy=jellystat.netgrimoire.com
- caddy.import=authentik
- caddy.reverse_proxy="{{upstreams 3000}}"
placement:
constraints:
- node.hostname == bruce
networks:
netgrimoire:
external: true