2024-10-08 22:57:33 +04:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
gateway:
|
|
|
|
container_name: gateway
|
|
|
|
build: ./gateway
|
|
|
|
image: gateway
|
|
|
|
ports:
|
|
|
|
- "6060:6060"
|
2024-11-15 01:04:14 +04:00
|
|
|
environment:
|
|
|
|
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/Rental
|
|
|
|
SPRING_DATASOURCE_USERNAME: role_for_spring
|
|
|
|
SPRING_DATASOURCE_PASSWORD: ${DB_PASSWORD}
|
2024-10-08 22:57:33 +04:00
|
|
|
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"
|
2024-10-24 02:11:11 +04:00
|
|
|
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"
|
2024-10-24 23:11:42 +04:00
|
|
|
zookeeper:
|
|
|
|
container_name: zookeeper
|
|
|
|
image: confluentinc/cp-zookeeper:latest
|
|
|
|
depends_on:
|
|
|
|
- myminio
|
|
|
|
environment:
|
|
|
|
ZOOKEEPER_CLIENT_PORT: 2181
|
|
|
|
ZOOKEEPER_TICK_TIME: 2000
|
|
|
|
ports:
|
|
|
|
- '2181:2181'
|
|
|
|
networks:
|
|
|
|
backend:
|
|
|
|
aliases:
|
|
|
|
- "zookeeper"
|
|
|
|
kafka:
|
|
|
|
container_name: kafka
|
|
|
|
image: confluentinc/cp-kafka:latest
|
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
|
|
|
ports:
|
|
|
|
- '9092:9092'
|
|
|
|
environment:
|
|
|
|
KAFKA_BROKER_ID: 1
|
|
|
|
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
|
|
|
|
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092
|
|
|
|
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
|
|
|
|
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
|
|
|
|
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
|
|
|
|
networks:
|
|
|
|
backend:
|
|
|
|
aliases:
|
|
|
|
- "kafka"
|
2024-10-08 22:57:33 +04:00
|
|
|
|
|
|
|
networks:
|
|
|
|
backend:
|
2024-10-24 23:11:42 +04:00
|
|
|
driver: bridge
|