21 lines
498 B
YAML
21 lines
498 B
YAML
version: '3'
|
|
services:
|
|
worker-1:
|
|
build:
|
|
context: /worker-1
|
|
dockerfile: Dockerfile
|
|
container_name: worker-1
|
|
volumes: # Монтирование
|
|
- .\data:/var/data
|
|
- .\result:/var/result
|
|
worker-2:
|
|
build:
|
|
context: /worker-2
|
|
dockerfile: Dockerfile
|
|
container_name: worker-2
|
|
depends_on: # Зависимость сервисов
|
|
- worker-1
|
|
volumes: # Монтирование
|
|
- .\data:/var/data
|
|
- .\result:/var/result
|