2023-03-11 10:43:06 -08:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
newsbot:
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db:
|
|
|
|
|
|
|
|
services:
|
2023-03-13 21:59:39 -07:00
|
|
|
db:
|
|
|
|
image: postgres:latest
|
|
|
|
environment:
|
2023-06-19 15:37:21 -07:00
|
|
|
POSTGRES_USER: ${PostgresUser}]
|
2023-03-13 21:59:39 -07:00
|
|
|
POSTGRES_PASSWORD: ${PostgresPassword}
|
|
|
|
POSTGRES_DB: ${PostgresDatabaseName}
|
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
|
|
|
networks:
|
|
|
|
- newsbot
|
|
|
|
volumes:
|
|
|
|
- db:/var/lib/postgresql/data
|
|
|
|
healthcheck:
|
|
|
|
test: [ “CMD-SHELL”, “pg_isready” ]
|
2023-03-13 22:25:45 -07:00
|
|
|
interval: "1m"
|
|
|
|
timeout: "30s"
|
|
|
|
retries: 5
|
2023-03-13 21:59:39 -07:00
|
|
|
|
2023-03-11 10:43:06 -08:00
|
|
|
api:
|
|
|
|
image: newsbot.collector:latest
|
|
|
|
environment:
|
2023-07-14 22:25:53 -07:00
|
|
|
# This will run the migrations for you on API Startup.
|
|
|
|
"RunDatabaseMigrationsOnStartup": true
|
|
|
|
|
|
|
|
# If this is false then /swagger/index.html will not be active on the API
|
|
|
|
EnableSwagger: true
|
|
|
|
|
|
|
|
JwtSettings__Secret: "ThisNeedsToBeSecretAnd32CharactersLong"
|
|
|
|
|
2023-03-11 10:43:06 -08:00
|
|
|
Logging__LogLevel__Default: "Information"
|
|
|
|
Logging__LogLevel__Microsoft.AspNetCore: "Warning"
|
|
|
|
Logging__LogLevel__Hangfire: "Information"
|
|
|
|
|
2023-03-13 21:59:39 -07:00
|
|
|
ConnectionStrings__Database: "Host=localhost;Username=${PostgresUser};Password=${PostgresPassword};Database=${PostgresDatabaseName};sslmode=disable"
|
2023-03-11 10:43:06 -08:00
|
|
|
|
|
|
|
# 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.
|
2023-03-13 21:59:39 -07:00
|
|
|
Twitch__ClientID: ${TwitchClientId}
|
|
|
|
Twitch__ClientSecret: ${TwitchClientSecret}
|
2023-03-11 10:43:06 -08:00
|
|
|
|
|
|
|
# If you want to collect news on Final Fantasy XIV, set this to true
|
|
|
|
FFXIV__IsEnabled: false
|
2023-07-14 22:25:53 -07:00
|
|
|
|
|
|
|
CodeProjects__IsEnabled: true
|
2023-03-13 22:25:45 -07:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
|
|
|
|
interval: "1m"
|
|
|
|
timeout: "30s"
|
|
|
|
retries: 5
|
2023-03-11 10:43:06 -08:00
|
|
|
ports:
|
|
|
|
- "5001:5000"
|
|
|
|
networks:
|
|
|
|
- newsbot
|