Merge compose configurations.

This commit is contained in:
Kevin Baensch 2022-12-23 09:43:17 +01:00
parent ded4b31dbb
commit 87641a0714
2 changed files with 20 additions and 24 deletions

View file

@ -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

View file

@ -13,6 +13,7 @@ services:
- /etc/hosts:/config/hosts:rw
networks:
- proxy
restart: unless-stopped
proxy:
image: caddy:2.6.2-alpine
ports:
@ -23,6 +24,25 @@ services:
- ./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: