mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
update env and docker file
This commit is contained in:
parent
cda80f1083
commit
a542b32b89
2 changed files with 35 additions and 26 deletions
29
env.example
29
env.example
|
@ -1,15 +1,24 @@
|
|||
TWITCH_USERNAME=cooltwitchusername
|
||||
TWITCH_OAUTH=oauth:cooltwitchoauthtoken
|
||||
MIGRATE=no
|
||||
|
||||
TWITCH_USERNAME=nourybot
|
||||
TWITCH_OAUTH=oauth:asd
|
||||
TWITCH_COMMAND_PREFIX=()
|
||||
ENV=dev
|
||||
|
||||
TWITCH_CLIENT_ID=mycoolclientid
|
||||
TWITCH_CLIENT_SECRET=mycoolclientsecret
|
||||
TWITCH_CLIENT_ID=asd
|
||||
TWITCH_CLIENT_SECRET=asd
|
||||
EVENTSUB_SECRET=asd
|
||||
|
||||
LOCAL_DSN=postgres://user:password@localhost/database-name?sslmode=disable
|
||||
REMOTE_DSN=postgresql://user:password@databaseurlfrom.supabase.com:5432/postgres
|
||||
DSN=postgres://nourybot:coolpassword@postgres:5432/nourybot?sslmode=disable
|
||||
DB_HOST=postgres
|
||||
DB_PORT=5432
|
||||
DB_USER=nourybot
|
||||
DB_PASSWORD=coolpassword
|
||||
DB_NAME=nourybot
|
||||
|
||||
OWM_KEY=mycoolopenweatherkey
|
||||
OWM_KEY=asd
|
||||
WOLFRAMALPHA_APP_ID=asd
|
||||
|
||||
LAST_FM_APPLICATION_NAME=goodname
|
||||
LAST_FM_API_KEY=goodlastfmapikey
|
||||
LAST_FM_SECRET=goodlastfmsecretkey
|
||||
LAST_FM_APPLICATION_NAME=asd
|
||||
LAST_FM_API_KEY=asd
|
||||
LAST_FM_SECRET=asd
|
||||
|
|
|
@ -1,24 +1,24 @@
|
|||
version: "3.7"
|
||||
|
||||
services:
|
||||
database:
|
||||
image: postgres
|
||||
restart: always
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- data:/var/lib/postgresql/data
|
||||
nourybot:
|
||||
user: "1000:1000"
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
volumes:
|
||||
- "/tmp/CHANGE_THIS_DIRECTORY/:/public/uploads"
|
||||
ports:
|
||||
- "127.0.0.1:42069:8080"
|
||||
depends_on:
|
||||
- database
|
||||
- postgres
|
||||
volumes:
|
||||
- "/tmp/CHANGE_ME/uploads:/public/uploads"
|
||||
ports:
|
||||
- "127.0.0.1:8080:8080"
|
||||
postgres:
|
||||
image: postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: nourybot
|
||||
POSTGRES_USER: nourybot
|
||||
POSTGRES_PASSWORD: coolpassword
|
||||
volumes:
|
||||
- nourybotdb:/var/lib/postgresql/data
|
||||
volumes:
|
||||
data:
|
||||
nourybotdb:
|
||||
|
|
Loading…
Reference in a new issue