2023-11-24 07:55:12 +04:00
|
|
|
version: '3.8'
|
2023-11-21 21:56:09 +04:00
|
|
|
|
|
|
|
services:
|
2023-11-21 23:45:46 +04:00
|
|
|
user-service:
|
|
|
|
build:
|
|
|
|
context: ./user_service
|
2023-11-21 21:56:09 +04:00
|
|
|
ports:
|
2023-11-21 23:45:46 +04:00
|
|
|
- "5001:5001"
|
2023-11-24 07:55:12 +04:00
|
|
|
networks:
|
|
|
|
- my_network
|
2023-11-25 03:01:57 +04:00
|
|
|
restart: always
|
2023-11-21 21:56:09 +04:00
|
|
|
|
2023-11-21 23:45:46 +04:00
|
|
|
order-service:
|
|
|
|
build:
|
|
|
|
context: ./order_service
|
2023-11-21 21:56:09 +04:00
|
|
|
ports:
|
2023-11-21 23:45:46 +04:00
|
|
|
- "5002:5002"
|
2023-11-24 07:55:12 +04:00
|
|
|
networks:
|
|
|
|
- my_network
|
2023-11-25 03:01:57 +04:00
|
|
|
restart: always
|
2023-11-21 21:56:09 +04:00
|
|
|
|
2023-11-21 23:45:46 +04:00
|
|
|
nginx:
|
2023-11-24 07:55:12 +04:00
|
|
|
image: nginx:latest
|
2023-11-21 23:45:46 +04:00
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
depends_on:
|
|
|
|
- user-service
|
|
|
|
- order-service
|
2023-11-24 07:55:12 +04:00
|
|
|
networks:
|
|
|
|
- my_network
|
|
|
|
volumes:
|
|
|
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
2023-11-25 03:01:57 +04:00
|
|
|
restart: always
|
2023-11-24 07:55:12 +04:00
|
|
|
|
|
|
|
networks:
|
|
|
|
my_network:
|
|
|
|
driver: bridge
|