Newsbot.Collector/docker-compose.yaml

73 lines
1.9 KiB
YAML
Raw Normal View History

version: "3"
networks:
newsbot:
volumes:
db:
services:
db:
image: postgres:latest
environment:
POSTGRES_USER: ${PostgresUser}
POSTGRES_PASSWORD: ${PostgresPassword}
POSTGRES_DB: ${PostgresDatabaseName}
ports:
- "5432:5432"
networks:
- newsbot
volumes:
- db:/var/lib/postgresql/data
healthcheck:
test: [ “CMD-SHELL”, “pg_isready” ]
interval: "1m"
timeout: "30s"
retries: 5
adminer:
image: adminer
restart: always
ports:
- "8080:8080"
api:
image: newsbot.collector:latest
environment:
# Used for database migrations
GOOSE_DRIVER: "postgres"
GOOSE_DBSTRING: "host=localhost user=${PostgresUser} password=${PostgresPassword} dbname=${PostgresDatabaseName} sslmode=disable"
SERVER_ADDRESS: "localhost"
Logging__LogLevel__Default: "Information"
Logging__LogLevel__Microsoft.AspNetCore: "Warning"
Logging__LogLevel__Hangfire: "Information"
ConnectionStrings__Database: "Host=localhost;Username=${PostgresUser};Password=${PostgresPassword};Database=${PostgresDatabaseName};sslmode=disable"
# Enable/Disable Reddit monitoring
Reddit__IsEnabled: false
Reddit__PullHot: true
Reddit__PullNsfw: true
Reddit__PullTop: true
# Enable/Disable YouTube monitoring
Youtube__IsEnabled: false
TWITCH__IsEnabled: false
# Set your Twitch Developer ID and Secrets here and they will be used to collect updates.
Twitch__ClientID: ${TwitchClientId}
Twitch__ClientSecret: ${TwitchClientSecret}
# If you want to collect news on Final Fantasy XIV, set this to true
FFXIV__IsEnabled: false
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
interval: "1m"
timeout: "30s"
retries: 5
ports:
- "5001:5000"
networks:
- newsbot