mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2024-11-25 04:51:13 +00:00
41 lines
970 B
YAML
41 lines
970 B
YAML
|
version: "3.3"
|
||
|
|
||
|
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
|
||
|
hostname: redis
|
||
|
container_name: requestbin_redis
|
||
|
restart: unless-stopped
|
||
|
#volumes:
|
||
|
# - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/requestbin/redis:/data
|
||
|
#networks:
|
||
|
# - dev
|
||
|
|
||
|
#networks:
|
||
|
# dev:
|
||
|
# external: true
|