services: script: image: 'ubuntu:21.04' working_dir: /path/to/where/you/want/to/mount/script/ volumes: - '/data/schule/startup.sh:/data/startup.sh' command: - 'bash /data/startup.sh' ports: - '22:22'