19 lines
491 B
YAML
19 lines
491 B
YAML
version: '3'
|
|
services:
|
|
app1:
|
|
build:
|
|
context: ./app-1
|
|
volumes:
|
|
- ./data:/var/data # Монтируем локальную папку data в /var/data
|
|
- ./result:/var/result # Монтируем локальную папку result в /var/result
|
|
container_name: app1
|
|
|
|
app2:
|
|
build:
|
|
context: ./app-2
|
|
depends_on:
|
|
- app1
|
|
volumes:
|
|
- ./result:/var/result # Монтируем ту же папку result
|
|
container_name: app2
|