version: '3.8' # or '2.4' # add services: # add videopi: build: context: . dockerfile: Dockerfile ports: - "8080:8080" - "8887:8887" - "8888:8888" #~ command: "sh -c 'sleep 3600'" command: "sh -c 'pip install -r requirements.txt && sleep 3600'" volumes: - .:/app - ../medias:/medias networks: - dockervlan networks: dockervlan: name: dockervlan driver: macvlan driver_opts: parent: wlo1 ipam: config: - subnet: "10.42.0.1/24" ip_range: "10.42.0.1/26" gateway: "10.42.0.1" #~ docker network create -d macvlan \ #~ --subnet=10.42.0.1/24 \ #~ --gateway=10.42.0.1 \ #~ -o parent=wlo1 \ #~ vpi-macvlan-net