34 lines
523 B
YAML
34 lines
523 B
YAML
services:
|
|
person-app:
|
|
build:
|
|
context: ./PersonApp
|
|
dockerfile: Dockerfile
|
|
networks:
|
|
- network
|
|
ports:
|
|
- "8080:8080"
|
|
|
|
task-app:
|
|
build:
|
|
context: ./TaskApp
|
|
dockerfile: Dockerfile
|
|
networks:
|
|
- network
|
|
ports:
|
|
- "8000:8000"
|
|
|
|
nginx:
|
|
image: nginx
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
|
networks:
|
|
- network
|
|
depends_on:
|
|
- person-app
|
|
- task-app
|
|
|
|
networks:
|
|
network:
|
|
driver: bridge |