Compose-Examples/examples/vouchervault/docker-compose.yml

39 lines
1.2 KiB
YAML
Raw Normal View History

2024-07-08 21:44:40 +00:00
services:
vouchervault:
2024-07-28 00:27:30 +00:00
image: l4rm4nd/vouchervault:1.0.x
2024-07-08 21:44:40 +00:00
container_name: vouchervault
environment:
2024-07-17 22:42:02 +00:00
- DOMAIN=vouchervault.example.com # your FQDN or IP; used to define ALLOWED_HOSTS and CSRF_TRUSTED_ORIGINS
- SECURE_COOKIES=False # set to True if you use a reverse proxy with tls; enables secure cookie flag and hsts
2024-07-08 21:44:40 +00:00
- EXPIRY_THRESHOLD_DAYS=90 # send notifications xx days prior expiry; default is 30
restart: unless-stopped
expose:
- 8000
ports:
2024-07-28 00:27:30 +00:00
- 8000:8000
2024-07-08 21:44:40 +00:00
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/vouchervault/database:/opt/app/database
#networks:
# - proxy
#labels:
# - traefik.enable=true
# - traefik.docker.network=proxy
# - traefik.http.routers.vouchervault.rule=Host(`vouchervault.example.com`)
# - traefik.http.services.vouchervault.loadbalancer.server.port=8000
# # Optional part for traefik middlewares
# - traefik.http.routers.vouchervault.middlewares=local-ipwhitelist@file
redis:
container_name: vouchervault-redis
image: redis:7.2-alpine
restart: unless-stopped
#networks:
# - proxy
#networks:
# proxy:
# external: true