27 lines
488 B
YAML
27 lines
488 B
YAML
|
services:
|
||
|
|
||
|
user_service:
|
||
|
container_name: userService
|
||
|
build:
|
||
|
context: .
|
||
|
dockerfile: ./userService/Dockerfile
|
||
|
expose:
|
||
|
- 20001
|
||
|
|
||
|
message_service:
|
||
|
container_name: messageService
|
||
|
build:
|
||
|
context: .
|
||
|
dockerfile: ./messageService/Dockerfile
|
||
|
expose:
|
||
|
- 20002
|
||
|
|
||
|
nginx:
|
||
|
image: nginx:latest
|
||
|
ports:
|
||
|
- "80:80"
|
||
|
volumes:
|
||
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
||
|
depends_on:
|
||
|
- user_service
|
||
|
- message_service
|