minio to docker-compose.yml.example
This commit is contained in:
@@ -4,4 +4,8 @@ LOGGER__APP_NAME="tgex-backend"
|
|||||||
LOGGER__PRETTY_CONSOLE=true
|
LOGGER__PRETTY_CONSOLE=true
|
||||||
TELEGRAM__TOKEN=your_bot_token_here
|
TELEGRAM__TOKEN=your_bot_token_here
|
||||||
JWT__SECRET_KEY=your_secret_key_here_please_generate_a_strong_random_string
|
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"
|
- "5432:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
healthcheck:
|
|
||||||
test: ["CMD-SHELL", "pg_isready -U user -d tgex"]
|
minio:
|
||||||
interval: 10s
|
image: minio/minio:latest
|
||||||
timeout: 5s
|
command: server /data --console-address ":9001"
|
||||||
retries: 5
|
environment:
|
||||||
|
MINIO_ROOT_USER: "user"
|
||||||
|
MINIO_ROOT_PASSWORD: "password"
|
||||||
|
ports:
|
||||||
|
- "9001:9001" # Web Console
|
||||||
|
volumes:
|
||||||
|
- minio_data:/data
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
build:
|
build:
|
||||||
@@ -21,8 +27,11 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
- postgres
|
||||||
condition: service_healthy
|
- minio
|
||||||
|
environment:
|
||||||
|
DB__URL: "postgres://user:password@postgres:5432/tgex"
|
||||||
|
S3__ENDPOINT_URL: "http://minio:9000"
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@@ -38,3 +47,4 @@ services:
|
|||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
|
minio_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user