-
Notifications
You must be signed in to change notification settings - Fork 1
/
commento.yml
54 lines (51 loc) · 1.59 KB
/
commento.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
version: '3.7'
services:
server:
image: caroga/commentoplusplus:v1.8.7
ports:
- 8090:8090
environment:
COMMENTO_ORIGIN: https://${DOMAIN_COMMENTO:?err}
COMMENTO_PORT: 8090
COMMENTO_POSTGRES: postgres://commento:commento@db:5432/commento?sslmode=disable
COMMENTO_FORBID_NEW_OWNERS: "true"
COMMENTO_SMTP_HOST: "smtp.eu.mailgun.org"
COMMENTO_SMTP_PORT: 587
COMMENTO_SMTP_USERNAME: ${MAILGUN_USER:?err}
COMMENTO_SMTP_PASSWORD: ${MAILGUN_PASSWORD:?err}
COMMENTO_SMTP_FROM_ADDRESS: ${MAIL_FROM_COMMENTO:-'Example Blog' <[email protected]>}
COMMENTO_GITHUB_KEY: ${COMMENTO_GITHUB_KEY:?err}
COMMENTO_GITHUB_SECRET: ${COMMENTO_GITHUB_SECRET:?err}
deploy:
labels:
traefik.enable: "true"
traefik.http.routers.commento.entrypoints: https
traefik.http.routers.commento.rule: Host(`${DOMAIN_COMMENTO:?err}`)
traefik.http.routers.commento.tls.certresolver: letsencrypt
traefik.http.services.commento-service.loadbalancer.server.port: "8090"
depends_on:
- db
networks:
- external
- internal
db:
image: postgres:12
environment:
POSTGRES_DB: commento
POSTGRES_USER: commento
POSTGRES_PASSWORD: commento
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/commento/db
networks:
external:
name: traefik-net
external: true
internal: