37 lines
589 B
YAML
37 lines
589 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
user-service:
|
|
build:
|
|
context: ./user_service
|
|
ports:
|
|
- "5001:5001"
|
|
networks:
|
|
- my_network
|
|
restart: always
|
|
|
|
order-service:
|
|
build:
|
|
context: ./order_service
|
|
ports:
|
|
- "5002:5002"
|
|
networks:
|
|
- my_network
|
|
restart: always
|
|
|
|
nginx:
|
|
image: nginx:latest
|
|
ports:
|
|
- "80:80"
|
|
depends_on:
|
|
- user-service
|
|
- order-service
|
|
networks:
|
|
- my_network
|
|
volumes:
|
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
|
restart: always
|
|
|
|
networks:
|
|
my_network:
|
|
driver: bridge |