-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
fathom.yml
34 lines (31 loc) · 1.01 KB
/
fathom.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
# DOMAIN=example.com docker stack deploy -c fathom.yml fathom
services:
web:
image: usefathom/fathom:${VERSION:-latest}
command:
- /bin/sh
- -c
- |
./fathom user add --email=${ADMIN_EMAIL} --password=${ADMIN_PASSWORD}
./fathom server
environment:
- ADMIN_EMAIL=${ADMIN_EMAIL:[email protected]}
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-myp@ssw0rd}
volumes:
- ${VOLUME_PATH}fathom:/app
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.fathom-${NUMBER:-1}.rule=Host(`${DOMAIN:-fathom.localhost}`)
- traefik.http.routers.fathom-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.fathom-${NUMBER:-1}.service=fathom-${NUMBER:-1}
- traefik.http.routers.fathom-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.fathom-${NUMBER:-1}.loadbalancer.server.port=8080
networks:
- traefik
volumes:
fathom:
networks:
traefik:
external: true
name: traefik-net