AutoDevReverseProxy/docker-compose.yml

46 lines
1 KiB
YAML
Raw Normal View History

2022-11-04 13:01:36 +01:00
version: "3.4"
services:
hostman:
image: apteno/alpine-jq
command: ["./hostman.sh", "&", "wait", "$!" ]
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- /etc/hosts:/tmp/hosts:rw
2022-11-11 15:38:59 +01:00
- ./script/hostman.sh:/hostman.sh:ro
sshd:
build:
context: .
dockerfile: ./Dockerfile
command: ["./sqlproxy.sh", "&", "wait", "$!" ]
ports:
- 22:22
volumes:
- ./etc/ssh:/etc/ssh/
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./script/hostman.sh:/hostman.sh:ro
- ./script/sqlproxy.sh:/sqlproxy.sh:ro
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
2022-11-04 13:01:36 +01:00
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
2022-11-04 13:54:00 +01:00
- proxy
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