feature: add config for infrastructure deployment

This commit is contained in:
2025-12-01 22:48:38 +05:00
parent 6862ea5760
commit bceb06b5b6
3 changed files with 60 additions and 3 deletions

View File

@@ -1,6 +1,15 @@
version: "3.8"
services: services:
nginx:
image: nginx:latest
container_name: nginx
ports:
- "80:80"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d:ro
depends_on:
- minio
networks:
- call-review-network
postgres: postgres:
image: postgres:15-alpine image: postgres:15-alpine
container_name: ingest-postgres container_name: ingest-postgres
@@ -19,9 +28,20 @@ services:
retries: 5 retries: 5
networks: networks:
- call-review-network - call-review-network
minio:
image: minio/minio
container_name: minio
environment:
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: password123
command: server /data --console-address ":9001"
volumes:
- minio_data:/data
networks:
- call-review-network
volumes: volumes:
postgres_data: postgres_data:
minio_data:
networks: networks:
call-review-network: call-review-network:

View File

@@ -0,0 +1,12 @@
server {
listen 80;
server_name ingest-service.bikmeefftest.ru;
location / {
proxy_pass http://ingest-service:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

View File

@@ -0,0 +1,25 @@
server {
listen 80;
server_name s3.bikmeefftest.ru;
location / {
proxy_pass http://minio:9000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
server {
listen 80;
server_name console.s3.bikmeefftest.ru;
location / {
proxy_pass http://minio:9001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}