DAS_2024_1/putilin_pavel_lab_3/docker-compose.yml

37 lines
639 B
YAML
Raw Normal View History

2024-12-02 23:57:46 +04:00
version: "3.8"
services:
client_service:
build:
context: ./client_service
container_name: client_service
ports:
- "8000:8000"
networks:
- app_network
order_service:
build:
context: ./order_service
container_name: order_service
ports:
- "8001:8001"
networks:
- app_network
environment:
- CLIENT_SERVICE_URL=http://client_service:8000
nginx:
image: nginx:alpine
container_name: nginx
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
networks:
- app_network
networks:
app_network:
driver: bridge