Newsbot.Collector/docker-compose.yaml
James Tombleson 799668a059
Features/pulling GitHub (#9)
* Still working though it but looking good on releases

* added the example discord message test

* updated source repo to return an existing record before a new is added

* updated the sources repo interface

* updated new routes to check for existing records

* starting to migrate the seed out of the sql migrations

* A new seed script was made to reload the db from the api

* Docker image works locally

* Adding CI to build docker image

* ... disabled swagger so I can test docker

* Added more to the github job but its not finished.  Isnt pulling sources yet.

* cleaned up formatting

* Controller updates to look for existing records when requesting a new one

* null check cleanup

* namespace fix
2023-03-11 10:43:06 -08:00

53 lines
1.3 KiB
YAML

version: "3"
networks:
newsbot:
volumes:
db:
services:
#db:
# image: postgres:latest
# #ports:
# # - "5432:5432"
# networks:
# - newsbot
# volumes:
# - db:/var/lib/postgresql/data
api:
image: newsbot.collector:latest
environment:
# Used for database migrations
GOOSE_DRIVER: "postgres"
GOOSE_DBSTRING: "host=localhost user=postgres password=postgres dbname=postgres sslmode=disable"
SERVER_ADDRESS: "localhost"
Logging__LogLevel__Default: "Information"
Logging__LogLevel__Microsoft.AspNetCore: "Warning"
Logging__LogLevel__Hangfire: "Information"
ConnectionStrings__Database: "Host=localhost;Username=postgres;Password=postgres;Database=postgres;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: ""
TWITCH__ClientSecret: ""
# If you want to collect news on Final Fantasy XIV, set this to true
FFXIV__IsEnabled: false
ports:
- "5001:5000"
networks:
- newsbot