2022-11-04 13:01:36 +01:00
|
|
|
version: "3.4"
|
|
|
|
|
|
|
|
services:
|
|
|
|
hostman:
|
2022-12-16 14:17:11 +01:00
|
|
|
image: julienlecomte/docker-make
|
2022-11-04 13:01:36 +01:00
|
|
|
command: ["./hostman.sh", "&", "wait", "$!" ]
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
2022-11-11 15:38:59 +01:00
|
|
|
- ./script/hostman.sh:/hostman.sh:ro
|
2022-12-16 14:17:11 +01:00
|
|
|
- ./script/docker-templater.sh:/docker-templater.sh:ro
|
2022-12-17 10:30:41 +01:00
|
|
|
- ./templates:/templates:ro
|
|
|
|
- ./config:/config:rw
|
|
|
|
- /etc/hosts:/config/hosts:rw
|
2022-12-16 14:17:11 +01:00
|
|
|
networks:
|
|
|
|
- proxy
|
2022-12-23 09:43:17 +01:00
|
|
|
restart: unless-stopped
|
2022-12-16 14:17:11 +01:00
|
|
|
proxy:
|
2023-05-22 15:20:30 +02:00
|
|
|
image: caddy:2.6.4-alpine
|
2022-11-04 13:01:36 +01:00
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
|
|
|
volumes:
|
2022-12-17 10:30:41 +01:00
|
|
|
- ./config/Caddyfile:/etc/caddy/Caddyfile:ro
|
|
|
|
- ./caddy_data:/data/caddy
|
2022-11-04 13:01:36 +01:00
|
|
|
networks:
|
2022-11-04 13:54:00 +01:00
|
|
|
- proxy
|
2022-12-23 09:43:17 +01:00
|
|
|
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
|
2022-11-04 13:01:36 +01:00
|
|
|
|
|
|
|
networks:
|
2022-11-04 13:54:00 +01:00
|
|
|
proxy:
|
|
|
|
name: proxy
|
2022-11-04 13:01:36 +01:00
|
|
|
external: false
|