2022-11-18 12:01:40 +01:00
|
|
|
version: "3.4"
|
|
|
|
|
|
|
|
services:
|
|
|
|
sshd:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./Dockerfile
|
|
|
|
command: ["./sqlproxy.sh", "&", "wait", "$!" ]
|
|
|
|
ports:
|
2022-11-21 17:47:41 +01:00
|
|
|
- 3022:22
|
2022-11-18 12:01:40 +01:00
|
|
|
volumes:
|
|
|
|
- ./etc/ssh:/etc/ssh/
|
|
|
|
- ./script/sqlproxy.sh:/sqlproxy.sh:ro
|
|
|
|
- ./script/sqlproxy_cli.sh:/sqlproxy_cli.sh:ro
|
2022-12-21 19:30:38 +01:00
|
|
|
- ./config:/config
|
2022-11-18 12:01:40 +01:00
|
|
|
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
|