30 lines
511 B
YAML
30 lines
511 B
YAML
|
|
services:
|
|
|
|
patient_service:
|
|
container_name: patient_service
|
|
build:
|
|
context: .
|
|
dockerfile: ./patient_service/Dockerfile
|
|
expose:
|
|
- 20001
|
|
|
|
hospital_service:
|
|
container_name: hospital_service
|
|
build:
|
|
context: .
|
|
dockerfile: ./hospital_service/Dockerfile
|
|
expose:
|
|
- 20002
|
|
|
|
nginx:
|
|
image: nginx:latest
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
|
depends_on:
|
|
- patient_service
|
|
- hospital_service
|
|
|