minio to docker-compose.yml.example

This commit is contained in:
Artem Tsyrulnikov
2026-01-06 19:05:05 +03:00
parent 9b95075abf
commit cb6bdd5580
2 changed files with 22 additions and 8 deletions

View File

@@ -5,3 +5,7 @@ LOGGER__PRETTY_CONSOLE=true
TELEGRAM__TOKEN=your_bot_token_here
JWT__SECRET_KEY=your_secret_key_here_please_generate_a_strong_random_string
PARSER__URL=http://localhost:8080
S3__ENDPOINT_URL=http://localhost:9000
S3__ACCESS_KEY_ID=user
S3__SECRET_ACCESS_KEY=password
S3__BUCKET_NAME=tgex-files

View File

@@ -9,11 +9,17 @@ services:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user -d tgex"]
interval: 10s
timeout: 5s
retries: 5
minio:
image: minio/minio:latest
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: "user"
MINIO_ROOT_PASSWORD: "password"
ports:
- "9001:9001" # Web Console
volumes:
- minio_data:/data
backend:
build:
@@ -21,8 +27,11 @@ services:
ports:
- "8000:8000"
depends_on:
postgres:
condition: service_healthy
- postgres
- minio
environment:
DB__URL: "postgres://user:password@postgres:5432/tgex"
S3__ENDPOINT_URL: "http://minio:9000"
env_file:
- .env
restart: unless-stopped
@@ -38,3 +47,4 @@ services:
volumes:
postgres_data:
minio_data: