feat(bot): Update stuff to migrate to k8s.

This commit is contained in:
Nyeki.py
2024-10-31 04:57:58 -03:00
parent d20f808b88
commit c0616cbcfe
16 changed files with 367 additions and 330 deletions
-36
View File
@@ -1,36 +0,0 @@
name: "payphone"
services:
bot:
build: .
env_file:
- .env
environment:
IS_DEBUG: "false"
depends_on:
- database
- redis
command: run.sh
restart: always
database:
image: postgres:16.3
environment:
- POSTGRES_DB=payphone
- POSTGRES_USER=payphone
- POSTGRES_PASSWORD=payphone
volumes:
- database:/var/lib/postgresql/data
command: postgres -c 'max_connections=1000'
# ports:
# - 5432:5432
restart: always
redis:
image: redis:7.4.1-alpine
# ports:
# - 6379:6379
restart: always
volumes:
database: