1
0
mirror of https://github.com/umputun/reproxy.git synced 2025-02-16 18:34:30 +02:00
reproxy/examples/docker/docker-compose.yml
2021-04-10 23:51:12 -05:00

36 lines
782 B
YAML

services:
reproxy:
image: umputun/reproxy:master
container_name: reproxy
hostname: reproxy
ports:
- "80:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./web:/web
environment:
- LISTEN=0.0.0.0:8080
- DOCKER_ENABLED=true
- ASSETS_LOCATION=/web
- DEBUG=true
svc1:
image: hashicorp/http-echo
hostname: svc1
container_name: svc1
command: -text="hello world from svc1"
svc2:
image: hashicorp/http-echo
hostname: svc2
container_name: svc2
command: -text="hello world from svc2"
whoami:
image: 'containous/whoami'
hostname: whoami
container_name: whoami
labels:
reproxy.server: '*'
reproxy.route: '^/whoami/(.*)'
reproxy.dest: '/$$1'