36 lines
556 B
YAML
36 lines
556 B
YAML
|
version: '3'
|
||
|
|
||
|
services:
|
||
|
user-service:
|
||
|
build:
|
||
|
context: /user-service
|
||
|
dockerfile: Dockerfile
|
||
|
ports:
|
||
|
- 8085:8085
|
||
|
networks:
|
||
|
- network
|
||
|
|
||
|
message-service:
|
||
|
build:
|
||
|
context: /message-service
|
||
|
dockerfile: Dockerfile
|
||
|
ports:
|
||
|
- 8086:8086
|
||
|
networks:
|
||
|
- network
|
||
|
|
||
|
nginx:
|
||
|
image: nginx
|
||
|
ports:
|
||
|
- 8087:80
|
||
|
networks:
|
||
|
- network
|
||
|
volumes:
|
||
|
- ./nginx-conf:/etc/nginx/conf.d
|
||
|
depends_on:
|
||
|
- user-service
|
||
|
- message-service
|
||
|
|
||
|
networks:
|
||
|
network:
|
||
|
driver: bridge
|