2023-11-12 12:05:59 +04:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
service_a:
|
|
|
|
build: ./service_a
|
|
|
|
ports:
|
|
|
|
- "5000:5000"
|
|
|
|
|
|
|
|
service_b:
|
|
|
|
build: ./service_b
|
|
|
|
ports:
|
|
|
|
- "5001:5001"
|
|
|
|
|
|
|
|
nginx:
|
|
|
|
image: nginx
|
|
|
|
ports:
|
2023-12-04 18:24:11 +04:00
|
|
|
- "80:80"
|
2023-11-12 12:05:59 +04:00
|
|
|
volumes:
|
2023-12-04 18:24:11 +04:00
|
|
|
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
|
2023-11-12 12:05:59 +04:00
|
|
|
depends_on:
|
|
|
|
- service_a
|
2023-11-12 19:01:15 +04:00
|
|
|
- service_b
|