DAS_2023_1/romanova_adelina_lab_3/docker-compose.yaml

37 lines
604 B
YAML

version: '3.8'
services:
service-service:
build:
context: ./service_service
ports:
- "5001:5001"
networks:
- my_network
restart: always
product-service:
build:
context: ./product_service
ports:
- "5002:5002"
networks:
- my_network
restart: always
nginx:
image: nginx:latest
ports:
- "80:80"
depends_on:
- service-service
- product-service
networks:
- my_network
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
restart: always
networks:
my_network:
driver: bridge