26 lines
505 B
YAML
26 lines
505 B
YAML
services:
|
|
category_service:
|
|
container_name: categoryService
|
|
build:
|
|
context: .
|
|
dockerfile: ./category_service/Dockerfile
|
|
expose:
|
|
- 20001
|
|
|
|
service_service:
|
|
container_name: serviceService
|
|
build:
|
|
context: .
|
|
dockerfile: ./service_service/Dockerfile
|
|
expose:
|
|
- 20002
|
|
|
|
nginx:
|
|
image: nginx:latest
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
|
depends_on:
|
|
- category_service
|
|
- service_service |