AutoDevReverseProxy/docker-compose.yml
2023-08-17 23:05:06 +00:00

50 lines
1.1 KiB
YAML

version: "3.4"
services:
hostman:
image: julienlecomte/docker-make
command: ["./hostman.sh", "&", "wait", "$!" ]
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./script/hostman.sh:/hostman.sh:ro
- ./script/docker-templater.sh:/docker-templater.sh:ro
- ./templates:/templates:ro
- ./config:/config:rw
- /etc/hosts:/config/hosts:rw
networks:
- proxy
restart: unless-stopped
proxy:
image: caddy:2.7.4-alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./config/Caddyfile:/etc/caddy/Caddyfile:ro
- ./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:
name: proxy
external: false