Skip to content

Commit

Permalink
Update 4 files
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiiRepair committed Oct 7, 2023
1 parent 21c50e8 commit 455e2f3
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 13 deletions.
8 changes: 5 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
API_HASH="YOUR-API-HASH"
API_ID="YOUR-API-ID"
BOT_TOKEN="YOUR-TELEGRAM-BOT-TOKEN"
BOT_USERNAME=""
CHANNEL=""
BOT_USERNAME="YOUR-TELEGRAM-BOT-USERNAME"
CHANNEL="YOUR-TELEGRAM-BOT-CHANNEL"
ES_MOVIES_CHANNEL="https://t.me/+ZHVk4AoouP85NGVh"
ES_SERIES_CHANNEL="https://t.me/+tf2D067PgIY1ODdh"
MANAGEMENT_MODE=""
MANTAINER="DEV-USERNAME"
SESSION_STRING=""
POSTGRES_USER=""
POSTGRES_PASSWORD=""
SESSION_STRING=""
44 changes: 43 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,46 @@
version: "1"
services:
app:
db:
image: postgres:14.1-alpine
restart: always
env_file:
- ./.env
ports:
- '5432:5432'
volumes:
- db:/var/lib/postgresql/data
- ./db/init.sql:/docker-entrypoint-initdb.d/create_tables.sql
cache:
image: redis:6.2-alpine
restart: always
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
volumes:
- cache:/data
pgadmin:
image: dpage/pgadmin4
restart: always
volumes:
- pgadmin_data:/var/lib/pgadmin
env_file:
- ./.env
depends_on:
- db
ports:
- "5050:80"
expose:
- 5050
bot:
build: .
depends_on:
- db
- cache

volumes:
db:
driver: local
pgadmin:
driver: local
cache:
driver: local
6 changes: 0 additions & 6 deletions scripts/setup.sh

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/start.sh

This file was deleted.

0 comments on commit 455e2f3

Please sign in to comment.