39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
services:
|
|
tokenwatch:
|
|
image: git.orfel.de/jannik/tokenwatch:latest
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- PORT=3000
|
|
- DB_USER=${DB_USER:-postgres}
|
|
- DB_HOST=postgres
|
|
- DB_NAME=${DB_NAME:-tokenwatch}
|
|
- DB_PASSWORD=${DB_PASSWORD:-your_db_password}
|
|
- NTFY_URL=${NTFY_URL:-https://ntfy.orfel.de/Token-Watch}
|
|
- ANTIGRAVITY_API_KEY=${ANTIGRAVITY_API_KEY}
|
|
- ANTIGRAVITY_ENDPOINT=${ANTIGRAVITY_ENDPOINT}
|
|
- POE_API_KEY=${POE_API_KEY}
|
|
- MINIMAX_API_KEY=${MINIMAX_API_KEY}
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
|
|
postgres:
|
|
image: postgres:15-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: ${DB_USER:-postgres}
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD:-your_db_password}
|
|
POSTGRES_DB: ${DB_NAME:-tokenwatch}
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-postgres}"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
pgdata:
|