-
-
Notifications
You must be signed in to change notification settings - Fork 140
/
fider.yml
50 lines (46 loc) · 1.63 KB
/
fider.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
# DOMAIN=example.com docker stack deploy -c fider.yml fider
services:
app:
image: getfider/fider:${VERSION:-main}
environment:
- BASE_URL=${SCHEME:-https}://${DOMAIN:-fider.localhost}
- DATABASE_URL=postgres://fider:myp@ssw0rd@postgres:5432/fider?sslmode=disable
- JWT_SECRET=${JWT_SECRET:-VERY_STRONG_SECRET_SHOULD_BE_USED_HERE}
- EMAIL_NOREPLY=${SMTP_FROM:-noreply@example.com}
- EMAIL_SMTP_HOST=${SMTP_HOST:-smtp.example.com}
- EMAIL_SMTP_PORT=${SMTP_PORT:-587}
- EMAIL_SMTP_USERNAME=${SMTP_USERNAME:-noreply@example.com}
- EMAIL_SMTP_PASSWORD=${SMTP_PASSWORD:-myp@ssw0rd}
- EMAIL_SMTP_ENABLE_STARTTLS=${SMTP_TLS:-true}
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.fider-${NUMBER:-1}.rule=Host(`${DOMAIN:-fider.localhost}`)
- traefik.http.routers.fider-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.fider-${NUMBER:-1}.service=fider-${NUMBER:-1}
- traefik.http.routers.fider-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.fider-${NUMBER:-1}.loadbalancer.server.port=3000
networks:
- internal
- traefik
postgres:
image: postgres:${POSTGRES_VERSION:-12-alpine}
environment:
- POSTGRES_DB=fider
- POSTGRES_USER=fider
- POSTGRES_PASSWORD=myp@ssw0rd
healthcheck:
test: ["CMD", "pg_isready", "-U", "fider"]
volumes:
- ${VOLUME_PATH}postgres:/var/lib/postgresql/data
networks:
- internal
volumes:
postgres:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net