feat: migrate streamystats to v2

If you want to keep your existing data, follow instructions at https://github.com/fredrikburmester/streamystats/releases/tag/v2.0.0
This commit is contained in:
Viren070
2025-06-25 17:44:21 +01:00
parent f5177241b1
commit ae0621360f
2 changed files with 62 additions and 11 deletions
-3
View File
@@ -1,3 +0,0 @@
# Use the command below to generate a random secret key for your application.
# openssl rand -hex 64
SECRET_KEY_BASE=""
+62 -8
View File
@@ -1,12 +1,15 @@
services:
streamystats_frontend:
image: fredrikburmester/streamystats-nextjs:edge
image: fredrikburmester/streamystats-v2-nextjs:latest
container_name: streamystats_frontend
restart: unless-stopped
expose:
- 3000
environment:
API_URL: "http://streamystats_backend:4000/api"
NODE_ENV: "production"
DATABASE_URL: "postgresql://streamystats:streamystats@streamystats_postgres:5432/streamystats"
JOB_SERVER_URL: "http://streamystats_backend:3005"
HOSTNAME: "0.0.0.0"
labels:
- "traefik.enable=true"
- "traefik.http.routers.streamystats_frontend.rule=Host(`${STREAMYSTATS_HOSTNAME?}`)"
@@ -15,29 +18,63 @@ services:
- "traefik.http.routers.streamystats_frontend.middlewares=authelia@docker"
- "traefik.http.services.streamystats_frontend.loadbalancer.server.port=3000"
depends_on:
- streamystats_backend
streamystats_postgres:
condition: service_healthy
streamystats_migrations:
condition: service_completed_successfully
healthcheck:
test:
[
"CMD",
"wget",
"--quiet",
"--tries=1",
"--spider",
"http://localhost:3000/api/health",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
profiles:
- streamystats
- all
streamystats_backend:
image: fredrikburmester/streamystats-phoenix:edge
image: fredrikburmester/streamystats-v2-job-server:latest
container_name: streamystats_backend
restart: unless-stopped
expose:
- 4000
- 3005
environment:
DATABASE_URL: "postgres://streamystats:streamystats@streamystats_postgres:5432/streamystats"
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
NODE_ENV: "production"
DATABASE_URL: "postgresql://streamystats:streamystats@streamystats_postgres:5432/streamystats"
PORT: 3005
depends_on:
streamystats_postgres:
condition: service_healthy
streamystats_migrations:
condition: service_completed_successfully
healthcheck:
test:
[
"CMD",
"wget",
"--quiet",
"--tries=1",
"--spider",
"http://localhost:3005/health",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
profiles:
- streamystats
- all
streamystats_postgres:
image: pgvector/pgvector:pg16
image: tensorchord/vchord-postgres:pg17-v0.4.1
container_name: streamystats_postgres
restart: unless-stopped
expose:
@@ -57,4 +94,21 @@ services:
profiles:
- streamystats
- all
streamystats_migrations:
image: fredrikburmester/streamystats-v2-migrate:latest
container_name: streamystats_migrations
restart: "no"
environment:
- DATABASE_URL=postgresql://streamystats:streamystats@streamystats_postgres:5432/streamystats
- POSTGRES_USER=streamystats
- POSTGRES_PASSWORD=streamystats
- POSTGRES_DB=streamystats
- PGPASSWORD=streamystats
depends_on:
streamystats_postgres:
condition: service_healthy
profiles:
- streamystats
- all