dcaa/docker-compose.yml
2024-10-24 02:11:11 +04:00

96 lines
1.9 KiB
YAML

version: "3.8"
services:
gateway:
container_name: gateway
build: ./gateway
image: gateway
ports:
- "6060:6060"
networks:
backend:
aliases:
- "gateway"
postgres:
image: postgres:16-alpine
ports:
- "5433:5432"
environment:
POSTGRES_DB: Rental
POSTGRES_USER: role_for_spring
POSTGRES_PASSWORD: ${DB_PASSWORD}
networks:
backend:
aliases:
- "postgres"
rental:
container_name: rental
build: ./dcaa
image: rental
ports:
- "8080:8080"
depends_on:
- postgres
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/Rental
SPRING_DATASOURCE_USERNAME: role_for_spring
SPRING_DATASOURCE_PASSWORD: ${DB_PASSWORD}
networks:
backend:
aliases:
- "rental"
report:
container_name: report
build: ./report
image: report
ports:
- "8082:8082"
depends_on:
- rental
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/Rental
SPRING_DATASOURCE_USERNAME: role_for_spring
SPRING_DATASOURCE_PASSWORD: ${DB_PASSWORD}
networks:
backend:
aliases:
- "rental"
minio:
container_name: minio
image: minio/minio:latest
command: server --console-address ":9001" /data
depends_on:
- report
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: role_for_spring
MINIO_ROOT_PASSWORD: ${DB_MINIO_PASSWORD}
volumes:
- /mnt/data:/data
- /mnt/config:/root/.minio
networks:
backend:
aliases:
- "minio"
myminio:
container_name: myminio
build: ./minio
image: myminio
depends_on:
- minio
ports:
- "8081:8081"
networks:
backend:
aliases:
- "myminio"
networks:
backend:
driver: bridge
volumes:
minio-storage: