version: "3.4" services: 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 HOST_CONF_PATH: /etc/hosts RESOLVE_DOCKERHOST: true DOCKER_HOSTNAME_VAR: DB_VHOST networks: - proxy restart: unless-stopped