1
0
mirror of https://github.com/Haxxnet/Compose-Examples synced 2024-12-21 09:40:20 +00:00
Compose-Examples/examples/hemmelig/docker-compose.yml

35 lines
1.7 KiB
YAML
Raw Normal View History

2023-02-20 21:42:49 +00:00
services:
2023-02-20 22:00:04 +00:00
hemmelig:
2023-02-20 21:42:49 +00:00
image: hemmeligapp/hemmelig:latest
2023-02-20 22:00:04 +00:00
container_name: hemmelig
2023-02-20 21:42:49 +00:00
hostname: hemmelig
2023-02-20 22:00:04 +00:00
init: true
2023-02-20 21:42:49 +00:00
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/hemmelig/files:/var/tmp/hemmelig/upload/files
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/hemmelig/database:/home/node/hemmelig/database/
2023-02-20 22:00:04 +00:00
environment:
- SECRET_LOCAL_HOSTNAME=0.0.0.0 # The local hostname for the fastify instance
- SECRET_PORT=3000 # The port number for the fastify instance
- SECRET_HOST= # Used for i.e. set cors to your domain name
- SECRET_DISABLE_USERS=false # Disable user registration
- SECRET_ENABLE_FILE_UPLOAD=true # Enable or disable file upload
- SECRET_FILE_SIZE=10 # Set the total allowed upload file size in mb
2023-02-20 22:00:58 +00:00
- SECRET_FORCED_LANGUAGE=en # Set the default language for the application
2023-02-20 22:00:04 +00:00
- SECRET_JWT_SECRET=!changeme! # Override this for the secret signin JWT tokens for log in
- SECRET_MAX_TEXT_SIZE=256 # The max text size for the secret. Is set in kb. i.e. 256 for 256kb
ports:
- "3000:3000"
restart: always
stop_grace_period: 1m
healthcheck:
test: "wget -O /dev/null localhost:3000 || exit 1"
timeout: 5s
retries: 1
2023-02-20 21:42:49 +00:00
#labels:
# - traefik.enable=true
# - traefik.http.routers.hemmelig.rule=Host(`hemmelig.example.com`)
# - traefik.http.services.hemmelig.loadbalancer.server.port=3000
# - traefik.docker.network=proxy
# # Part for optional traefik middlewares
2023-02-20 22:00:04 +00:00
# - traefik.http.routers.hemmelig.middlewares=local-ipwhitelist@file,basic-auth@file