64 lines
1.8 KiB
YAML
64 lines
1.8 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
redis:
|
|
image: git.nixc.us/colin/haste:staging-redis
|
|
# volumes:
|
|
# - redis_data:/data
|
|
networks:
|
|
- default
|
|
deploy:
|
|
# placement:
|
|
# constraints:
|
|
# - node.hostname == macmini3
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: on-failure
|
|
|
|
haste:
|
|
image: git.nixc.us/colin/haste:staging-haste
|
|
# volumes:
|
|
# - public_system:/haste/public/system
|
|
networks:
|
|
- traefik
|
|
- default
|
|
environment:
|
|
HOST: "0.0.0.0"
|
|
PORT: "7777"
|
|
KEY_LENGTH: "10"
|
|
MAX_LENGTH: "400000"
|
|
STATIC_MAX_AGE: "7776000"
|
|
RECOMPRESS_STATIC_ASSETS: "true"
|
|
LOGGING_LEVEL: "verbose"
|
|
LOGGING_TYPE: "Console"
|
|
LOGGING_COLORIZE: "false"
|
|
KEY_GENERATOR_TYPE: "phonetic"
|
|
STORAGE_TYPE: "redis"
|
|
STORAGE_PATH: "./data"
|
|
STORAGE_HOST: "haste-staging_redis"
|
|
STORAGE_PORT: "6379"
|
|
STORAGE_DB: "2"
|
|
STORAGE_EXPIRE: "2592000"
|
|
deploy:
|
|
# placement:
|
|
# constraints:
|
|
# - node.hostname == macmini3
|
|
labels:
|
|
us.nixc.autodeploy: "true"
|
|
traefik.enable: "true"
|
|
traefik.http.routers.staging-haste_haste.rule: "Host(`staging.haste.nixc.us`)"
|
|
traefik.http.routers.staging-haste_haste.entrypoints: "websecure"
|
|
traefik.http.routers.staging-haste_haste.tls: "true"
|
|
traefik.http.routers.staging-haste_haste.tls.certresolver: "letsencryptresolver"
|
|
traefik.http.routers.staging-haste_haste.service: "staging-haste_haste"
|
|
traefik.http.services.staging-haste_haste.loadbalancer.server.port: "7777"
|
|
traefik.docker.network: "traefik"
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: on-failure
|
|
|
|
networks:
|
|
traefik:
|
|
external: true
|
|
default:
|
|
driver: overlay |