24 lines
394 B
YAML
24 lines
394 B
YAML
version: '3'
|
|
|
|
services:
|
|
service_a:
|
|
build: ./service_a
|
|
ports:
|
|
- "5000:5000"
|
|
|
|
service_b:
|
|
build: ./service_b
|
|
ports:
|
|
- "5001:5001"
|
|
|
|
nginx:
|
|
image: nginx
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./service_a.conf:/etc/nginx/conf.d/service_a.conf
|
|
- ./service_b.conf:/etc/nginx/conf.d/service_b.conf
|
|
depends_on:
|
|
- service_a
|
|
- service_b
|