AutoDevReverseProxy/docker-compose.yml

51 lines
1.1 KiB
YAML
Raw Normal View History

2022-11-04 13:01:36 +01:00
version: "3.4"
services:
hostman:
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
- ./script/docker-templater.sh:/docker-templater.sh:ro
- ./templates:/templates:ro
- ./config:/config:rw
- /etc/hosts:/config/hosts:rw
networks:
- proxy
2022-12-23 09:43:17 +01:00
restart: unless-stopped
proxy:
2023-08-18 01:05:06 +02:00
image: caddy:2.7.4-alpine
2022-11-04 13:01:36 +01:00
ports:
- "80:80"
- "443:443"
volumes:
- ./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