Move SQL Proxy into separate compose file.
This commit is contained in:
parent
0dac239d6d
commit
d51016d72d
2 changed files with 25 additions and 22 deletions
25
docker-compose-sqlproxy.yml
Normal file
25
docker-compose-sqlproxy.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
version: "3.4"
|
||||||
|
|
||||||
|
services:
|
||||||
|
sshd:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./Dockerfile
|
||||||
|
command: ["./sqlproxy.sh", "&", "wait", "$!" ]
|
||||||
|
ports:
|
||||||
|
- 22:22
|
||||||
|
volumes:
|
||||||
|
- ./etc/ssh:/etc/ssh/
|
||||||
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
- ./script/hostman.sh:/hostman.sh:ro
|
||||||
|
- ./script/sqlproxy.sh:/sqlproxy.sh:ro
|
||||||
|
- ./script/sqlproxy_cli.sh:/sqlproxy_cli.sh:ro
|
||||||
|
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
|
|
@ -8,28 +8,6 @@ services:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
- /etc/hosts:/tmp/hosts:rw
|
- /etc/hosts:/tmp/hosts:rw
|
||||||
- ./script/hostman.sh:/hostman.sh:ro
|
- ./script/hostman.sh:/hostman.sh:ro
|
||||||
sshd:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: ./Dockerfile
|
|
||||||
command: ["./sqlproxy.sh", "&", "wait", "$!" ]
|
|
||||||
ports:
|
|
||||||
- 22:22
|
|
||||||
volumes:
|
|
||||||
- ./etc/ssh:/etc/ssh/
|
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
||||||
- ./script/hostman.sh:/hostman.sh:ro
|
|
||||||
- ./script/sqlproxy.sh:/sqlproxy.sh:ro
|
|
||||||
- ./script/sqlproxy_cli.sh:/sqlproxy_cli.sh:ro
|
|
||||||
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
|
|
||||||
nginx-proxy:
|
nginx-proxy:
|
||||||
image: jwilder/nginx-proxy
|
image: jwilder/nginx-proxy
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in a new issue