updated docker-compose.yaml to enable variable loading from a env file
This commit is contained in:
parent
af5937d1ef
commit
b8ec9ed5f2
@ -7,21 +7,36 @@ volumes:
|
|||||||
db:
|
db:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
#db:
|
db:
|
||||||
# image: postgres:latest
|
image: postgres:latest
|
||||||
# #ports:
|
environment:
|
||||||
# # - "5432:5432"
|
POSTGRES_USER: ${PostgresUser}
|
||||||
# networks:
|
POSTGRES_PASSWORD: ${PostgresPassword}
|
||||||
# - newsbot
|
POSTGRES_DB: ${PostgresDatabaseName}
|
||||||
# volumes:
|
ports:
|
||||||
# - db:/var/lib/postgresql/data
|
- "5432:5432"
|
||||||
|
networks:
|
||||||
|
- newsbot
|
||||||
|
volumes:
|
||||||
|
- db:/var/lib/postgresql/data
|
||||||
|
healthcheck:
|
||||||
|
test: [ “CMD-SHELL”, “pg_isready” ]
|
||||||
|
interval: "1s"
|
||||||
|
timeout: "5s"
|
||||||
|
retries: 10
|
||||||
|
|
||||||
|
adminer:
|
||||||
|
image: adminer
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
|
||||||
api:
|
api:
|
||||||
image: newsbot.collector:latest
|
image: newsbot.collector:latest
|
||||||
environment:
|
environment:
|
||||||
# Used for database migrations
|
# Used for database migrations
|
||||||
GOOSE_DRIVER: "postgres"
|
GOOSE_DRIVER: "postgres"
|
||||||
GOOSE_DBSTRING: "host=localhost user=postgres password=postgres dbname=postgres sslmode=disable"
|
GOOSE_DBSTRING: "host=localhost user=${PostgresUser} password=${PostgresPassword} dbname=${PostgresDatabaseName} sslmode=disable"
|
||||||
|
|
||||||
SERVER_ADDRESS: "localhost"
|
SERVER_ADDRESS: "localhost"
|
||||||
|
|
||||||
@ -29,7 +44,7 @@ services:
|
|||||||
Logging__LogLevel__Microsoft.AspNetCore: "Warning"
|
Logging__LogLevel__Microsoft.AspNetCore: "Warning"
|
||||||
Logging__LogLevel__Hangfire: "Information"
|
Logging__LogLevel__Hangfire: "Information"
|
||||||
|
|
||||||
ConnectionStrings__Database: "Host=localhost;Username=postgres;Password=postgres;Database=postgres;sslmode=disable"
|
ConnectionStrings__Database: "Host=localhost;Username=${PostgresUser};Password=${PostgresPassword};Database=${PostgresDatabaseName};sslmode=disable"
|
||||||
|
|
||||||
# Enable/Disable Reddit monitoring
|
# Enable/Disable Reddit monitoring
|
||||||
Reddit__IsEnabled: false
|
Reddit__IsEnabled: false
|
||||||
@ -42,8 +57,8 @@ services:
|
|||||||
|
|
||||||
TWITCH__IsEnabled: false
|
TWITCH__IsEnabled: false
|
||||||
# Set your Twitch Developer ID and Secrets here and they will be used to collect updates.
|
# Set your Twitch Developer ID and Secrets here and they will be used to collect updates.
|
||||||
TWITCH__ClientID: ""
|
Twitch__ClientID: ${TwitchClientId}
|
||||||
TWITCH__ClientSecret: ""
|
Twitch__ClientSecret: ${TwitchClientSecret}
|
||||||
|
|
||||||
# If you want to collect news on Final Fantasy XIV, set this to true
|
# If you want to collect news on Final Fantasy XIV, set this to true
|
||||||
FFXIV__IsEnabled: false
|
FFXIV__IsEnabled: false
|
||||||
|
Loading…
Reference in New Issue
Block a user