diff --git a/.env.example b/.env.example index 69742f0..0135929 100644 --- a/.env.example +++ b/.env.example @@ -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 \ No newline at end of file +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 \ No newline at end of file diff --git a/docker-compose.yml.example b/docker-compose.yml.example index d7065f3..f44c220 100644 --- a/docker-compose.yml.example +++ b/docker-compose.yml.example @@ -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: