-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
kutt.yml
65 lines (60 loc) · 1.76 KB
/
kutt.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# DOMAIN=example.com docker stack deploy -c kutt.yml kutt
services:
kutt:
image: kutt/kutt:${VERSION:-v2.7.4}
command: ["./wait-for-it.sh", "postgres:5432", "--", "npm", "start"]
environment:
- SITE_NAME=${SITE_NAME:-Kutt}
- DEFAULT_DOMAIN=${DOMAIN:-kutt.localhost}
- JWT_SECRET=${JWT_SECRET-securekey}
- MAIL_HOST=${SMTP_HOST}
- MAIL_PORT=${SMTP_PORT}
- MAIL_USER=${SMTP_USER}
- MAIL_FROM=${SMTP_FROM}
- MAIL_SECURE=${SMTP_SECURE:-true}
- MAIL_PASSWORD=${SMTP_PASSWORD}
- DB_HOST=postgres
- DB_NAME=kutt
- DB_USER=kutt
- DB_PASSWORD=myp@ssw0rd
- REDIS_HOST=redis
- DISALLOW_REGISTRATION=${DISALLOW_REGISTRATION:-false}
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.kutt-${NUMBER:-1}.rule=Host(`${DOMAIN:-kutt.localhost}`)
- traefik.http.routers.kutt-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.kutt-${NUMBER:-1}.service=kutt-${NUMBER:-1}
- traefik.http.routers.kutt-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.kutt-${NUMBER:-1}.loadbalancer.server.port=3000
networks:
- internal
- traefik
redis:
image: redis:6.0-alpine
volumes:
- ${VOLUME_PATH}redis:/data
networks:
- internal
postgres:
image: postgres:12-alpine
environment:
- POSTGRES_DB=kutt
- POSTGRES_USER=kutt
- POSTGRES_PASSWORD=myp@ssw0rd
healthcheck:
test: ["CMD", "pg_isready", "-U", "kutt"]
volumes:
- ${VOLUME_PATH}postgres:/var/lib/postgresql/data
networks:
- internal
volumes:
postgres:
redis:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net