version: "3.4" services: hostman: image: julienlecomte/docker-make command: ["./hostman.sh", "&", "wait", "$!" ] volumes: - /var/run/docker.sock:/tmp/docker.sock:ro - ./script/hostman.sh:/hostman.sh:ro - ./script/docker-templater.sh:/docker-templater.sh:ro - ./templates:/templates:ro - ./config:/config:rw - /etc/hosts:/config/hosts:rw networks: - proxy restart: unless-stopped proxy: image: caddy:2.6.2-alpine ports: - "80:80" - "443:443" volumes: - ./config/Caddyfile:/etc/caddy/Caddyfile:ro - ./caddy_data:/data/caddy networks: - proxy restart: unless-stopped sshd: build: context: . dockerfile: ./Dockerfile command: ["./sqlproxy.sh", "&", "wait", "$!" ] ports: - 3022:22 volumes: - ./etc/ssh:/etc/ssh/ - ./script/sqlproxy.sh:/sqlproxy.sh:ro - ./script/sqlproxy_cli.sh:/sqlproxy_cli.sh:ro - ./config:/config environment: DISABLE_KEYGEN: true DISABLE_CONFIG_GEN: true networks: - proxy restart: unless-stopped networks: proxy: name: proxy external: false