k3s/docker-compose.yml
2023-10-18 01:09:50 +07:00

83 lines
1.8 KiB
YAML

version : '3'
services:
vm1:
image: earth4242/dockervm:3.0
container_name: vm1
privileged: true
stdin_open: true # docker run -i
tty: true # docker run -t
working_dir: /root/services
ports:
- 6443:6443
- 8080:80
- 8443:443
# - 3001:3006
# - 3002:3007
networks:
k3s:
ipv4_address: 192.168.221.11
volumes:
- ./services1:/root/services
vm2:
image: earth4242/dockervm:3.0
container_name: vm2
privileged: true
stdin_open: true # docker run -i
tty: true # docker run -t
working_dir: /root/services
# ports:
# - 3003:3006
# - 3004:3007
networks:
k3s:
ipv4_address: 192.168.221.12
volumes:
- ./services2:/root/services
vm3:
image: earth4242/dockervm:3.0
container_name: vm3
privileged: true
stdin_open: true # docker run -i
tty: true # docker run -t
working_dir: /root/services
# ports:
# - 3005:3006
# - 3006:3007
networks:
k3s:
ipv4_address: 192.168.221.13
volumes:
- ./services3:/root/services
vm4:
image: earth4242/dockervm:3.0
container_name: vm4
privileged: true
stdin_open: true # docker run -i
tty: true # docker run -t
working_dir: /root/services
# ports:
# - 3007:3006
# - 3008:3007
networks:
k3s:
ipv4_address: 192.168.221.14
volumes:
- ./services4:/root/services
# nginx:
# image: "nginx"
# container_name: nginx
# restart: always
# ports:
# - 4001:3001
# volumes:
# - ./nginx/default.conf:/etc/nginx/conf.d/default.conf
networks:
k3s:
external: true