minio to docker-compose.yml.example
This commit is contained in:
@@ -4,4 +4,8 @@ LOGGER__APP_NAME="tgex-backend"
|
||||
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
|
||||
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
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user