feat: update environment configuration and enhance presence management

- Updated .env.example to use more secure database credentials.
- Modified Dockerfile to remove unnecessary data copy.
- Enhanced README with additional setup instructions and security notes.
- Updated docker-compose files to improve database connection handling and security.
- Added error messages for invalid channel and role resolutions in locales.
- Introduced new scripts for code quality checks in package.json.
- Refactored presence management logic to improve state handling and timer management.
- Added tests for argument tokenizer, command definition, presence types, and template variables.
This commit is contained in:
Puechberty Arthur
2026-04-12 16:07:27 +02:00
parent bd5ef564bb
commit f6a2e2b970
19 changed files with 545 additions and 122 deletions
+7 -7
View File
@@ -10,22 +10,22 @@ services:
env_file:
- .env
environment:
DATABASE_URL: postgresql://${POSTGRES_USER:-discord}:${POSTGRES_PASSWORD:-discord}@postgres:5432/${POSTGRES_DB:-discord_bots}
DATABASE_SSL: "false"
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
DATABASE_SSL: ${DATABASE_SSL:-false}
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-discord_bots}
POSTGRES_USER: ${POSTGRES_USER:-discord}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-discord}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- "${POSTGRES_PORT:-5432}:5432"
- "127.0.0.1:${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-discord} -d ${POSTGRES_DB:-discord_bots}"]
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 5