From a542b32b8998ab09ee9c0bb7539bd6648a03afd2 Mon Sep 17 00:00:00 2001 From: nouryxd <66651385+nouryxd@users.noreply.github.com> Date: Wed, 17 Jul 2024 22:57:40 +0200 Subject: [PATCH] update env and docker file --- env.example | 29 +++++++++++++++++++---------- example.docker-compose | 32 ++++++++++++++++---------------- 2 files changed, 35 insertions(+), 26 deletions(-) diff --git a/env.example b/env.example index 30898eb..cac828b 100644 --- a/env.example +++ b/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 diff --git a/example.docker-compose b/example.docker-compose index f20da06..7870ae9 100644 --- a/example.docker-compose +++ b/example.docker-compose @@ -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: