37 lines
612 B
YAML
37 lines
612 B
YAML
|
version: '3'
|
||
|
services:
|
||
|
ubuntu_vm1:
|
||
|
build: .
|
||
|
container_name: ubuntu_vm1
|
||
|
ports:
|
||
|
- "10122:22" # Проброс порта для SSH
|
||
|
volumes:
|
||
|
- vm1_data:/home/user/data
|
||
|
tty: true
|
||
|
stdin_open: true
|
||
|
|
||
|
ubuntu_vm2:
|
||
|
build: .
|
||
|
container_name: ubuntu_vm2
|
||
|
ports:
|
||
|
- "10222:22"
|
||
|
volumes:
|
||
|
- vm2_data:/home/user/data
|
||
|
tty: true
|
||
|
stdin_open: true
|
||
|
|
||
|
ubuntu_vm3:
|
||
|
build: .
|
||
|
container_name:
|
||
|
ports:
|
||
|
- "10322:22"
|
||
|
volumes:
|
||
|
- vm3_data:/home/user/data
|
||
|
tty: true
|
||
|
stdin_open: true
|
||
|
|
||
|
volumes:
|
||
|
vm1_data:
|
||
|
vm2_data:
|
||
|
vm3_data:
|