update env and docker file

This commit is contained in:
nouryxd 2024-07-17 22:57:40 +02:00
parent cda80f1083
commit a542b32b89
2 changed files with 35 additions and 26 deletions

View file

@ -1,15 +1,24 @@
TWITCH_USERNAME=cooltwitchusername MIGRATE=no
TWITCH_OAUTH=oauth:cooltwitchoauthtoken
TWITCH_USERNAME=nourybot
TWITCH_OAUTH=oauth:asd
TWITCH_COMMAND_PREFIX=() TWITCH_COMMAND_PREFIX=()
ENV=dev
TWITCH_CLIENT_ID=mycoolclientid TWITCH_CLIENT_ID=asd
TWITCH_CLIENT_SECRET=mycoolclientsecret TWITCH_CLIENT_SECRET=asd
EVENTSUB_SECRET=asd
LOCAL_DSN=postgres://user:password@localhost/database-name?sslmode=disable DSN=postgres://nourybot:coolpassword@postgres:5432/nourybot?sslmode=disable
REMOTE_DSN=postgresql://user:password@databaseurlfrom.supabase.com:5432/postgres 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_APPLICATION_NAME=asd
LAST_FM_API_KEY=goodlastfmapikey LAST_FM_API_KEY=asd
LAST_FM_SECRET=goodlastfmsecretkey LAST_FM_SECRET=asd

View file

@ -1,24 +1,24 @@
version: "3.7"
services: services:
database:
image: postgres
restart: always
env_file:
- .env
volumes:
- data:/var/lib/postgresql/data
nourybot: nourybot:
user: "1000:1000"
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
restart: unless-stopped
env_file: .env env_file: .env
volumes:
- "/tmp/CHANGE_THIS_DIRECTORY/:/public/uploads"
ports:
- "127.0.0.1:42069:8080"
depends_on: 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: volumes:
data: nourybotdb: