DAS_2024_1/emelyanov_artem_lab_3/docker-compose.yml

38 lines
596 B
YAML
Raw Permalink Normal View History

2024-10-12 16:45:56 +04:00
version: '3'
services:
nginx:
image: nginx:latest
container_name: nginx
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- price
- product
networks:
- app-network
product:
build:
context: ./product_module
dockerfile: Dockerfile
ports:
- "8080:8080"
networks:
- app-network
price:
build:
context: ./price_history_module
dockerfile: Dockerfile
ports:
- "8081:8081"
networks:
- app-network
networks:
app-network:
driver: bridge