Merge compose configurations.
This commit is contained in:
parent
ded4b31dbb
commit
87641a0714
2 changed files with 20 additions and 24 deletions
|
@ -1,24 +0,0 @@
|
||||||
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
|
|
|
@ -13,6 +13,7 @@ services:
|
||||||
- /etc/hosts:/config/hosts:rw
|
- /etc/hosts:/config/hosts:rw
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
|
restart: unless-stopped
|
||||||
proxy:
|
proxy:
|
||||||
image: caddy:2.6.2-alpine
|
image: caddy:2.6.2-alpine
|
||||||
ports:
|
ports:
|
||||||
|
@ -23,6 +24,25 @@ services:
|
||||||
- ./caddy_data:/data/caddy
|
- ./caddy_data:/data/caddy
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- 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:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
|
|
Loading…
Reference in a new issue