-
Notifications
You must be signed in to change notification settings - Fork 1
/
fathom.yml
43 lines (40 loc) · 1.13 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
35
36
37
38
39
40
41
42
43
version: '3.7'
services:
server:
image: usefathom/fathom:version-1.2.1
environment:
FATHOM_DATABASE_DRIVER: postgres
FATHOM_DATABASE_URL: postgres://fathom:${POSTGRES_PASSWORD}@db:5432/fathom?sslmode=disable
depends_on:
- db
deploy:
labels:
traefik.enable: "true"
traefik.http.routers.fathom.entrypoints: https
traefik.http.routers.fathom.tls.certresolver: letsencrypt
traefik.http.routers.fathom.rule: Host(`${DOMAIN_FATHOM:?err}`)
traefik.http.services.fathom.loadbalancer.server.port: "8080"
networks:
- internal
- external
db:
image: postgres:12
environment:
POSTGRES_DB: fathom
POSTGRES_USER: fathom
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_data_volume:/var/lib/postgresql/data
networks:
- internal
volumes:
postgres_data_volume:
driver_opts:
type: nfs
o: "addr=${NFS_SERVER:?err},nfsvers=4,nolock,soft,rw"
device: :/mnt/data/fathom/db
networks:
external:
name: traefik-net
external: true
internal: