dcaa/docker-compose.yml

62 lines
1.3 KiB
YAML
Raw Normal View History

2024-10-08 22:57:33 +04:00
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"
networks:
backend:
driver: bridge