37 lines
639 B
YAML
37 lines
639 B
YAML
|
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
|