mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2024-12-18 16:20:19 +00:00
40 lines
959 B
YAML
40 lines
959 B
YAML
services:
|
|
|
|
app:
|
|
image: l4rm4nd/requestbin:latest
|
|
hostname: requestbin
|
|
container_name: requestbin
|
|
restart: unless-stopped
|
|
ports:
|
|
- 8000:8000
|
|
expose:
|
|
- 8000
|
|
environment:
|
|
REALM: prod
|
|
REDIS_URL: "//redis:6379"
|
|
links:
|
|
- redis
|
|
#networks:
|
|
# - dev
|
|
#labels:
|
|
# - traefik.enable=true
|
|
# - traefik.docker.network=dev
|
|
# - traefik.http.routers.requestbin.rule=Host(`bin.example.com`)
|
|
# - traefik.http.services.requestbin.loadbalancer.server.port=8000
|
|
# # Optional part for traefik middlewares
|
|
# - traefik.http.routers.requestbin.middlewares=local-ipwhitelist@file,authelia@docker
|
|
|
|
redis:
|
|
image: redis:alpine
|
|
container_name: requestbin_redis
|
|
hostname: redis
|
|
restart: unless-stopped
|
|
#volumes:
|
|
# - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/requestbin/redis:/data
|
|
#networks:
|
|
# - dev
|
|
|
|
#networks:
|
|
# dev:
|
|
# external: true
|