-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
72 lines (66 loc) · 2.7 KB
/
docker-compose.yaml
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
66
67
68
69
70
71
72
include:
- plausible/docker-compose.yaml
services:
nginx:
image: nginx:alpine
volumes:
- ./public:/usr/share/nginx/html
labels:
traefik.enable: "true"
traefik.http.routers.filippo-orru.rule: "Host(`filippo-orru.com`, `www.filippo-orru.com`)"
traefik.http.routers.filippo-orru.entrypoints: "https"
traefik.http.routers.filippo-orru.tls: "true"
traefik.http.services.filippo-orru.loadbalancer.server.port: "80"
webhook-listener:
build:
context: webhook-listener
args:
- PRE_BUILD_COMMAND=curl -L -o hugo.tar.gz https://github.com/gohugoio/hugo/releases/download/v0.133.0/hugo_extended_0.133.0_linux-arm64.tar.gz && tar -xvzf hugo.tar.gz && cp hugo /usr/bin/ && chmod +x /usr/bin/hugo
expose:
- 8080
environment:
- PORT=8080
- COMMAND="cd /src && git config --global --add safe.directory /src && git pull && hugo --ignoreCache --minify -s /src -d /target"
volumes:
- ./:/src
- ./public:/target
secrets:
- webhook_secret
labels:
traefik.enable: "true"
traefik.http.routers.filippo-orru-webhook.rule: "Host(`filippo-orru.com`) && PathPrefix(`/webhook`)"
traefik.http.routers.filippo-orru-webhook.entrypoints: "https"
traefik.http.routers.filippo-orru-webhook.tls: "true"
traefik.http.services.filippo-orru-webhook.loadbalancer.server.port: "8080"
comments:
image: ghcr.io/isso-comments/isso:latest@sha256:6d31cf7961a6cb57c448e286b239df914b4ff3270ca44fe8fa5a1a84f994f961
volumes:
- type: bind
source: ./services/isso-comments/isso.cfg
target: /config/isso.cfg
- './services/isso-comments/db:/db'
expose:
- 8080
labels:
traefik.enable: "true"
traefik.http.routers.filippo-orru-comments.rule: "Host(`filippo-orru.com`, `www.filippo-orru.com`) && PathPrefix(`/isso`)"
# traefik.http.routers.filippo-orru-comments.rule: "Host(`localhost`) && PathPrefix(`/isso`)"
traefik.http.routers.filippo-orru-comments.middlewares: "filippo-orru-comments-stripprefix"
traefik.http.middlewares.filippo-orru-comments-stripprefix.stripprefix.prefixes: "/isso"
traefik.http.routers.filippo-orru-comments.entrypoints: "https"
traefik.http.routers.filippo-orru-comments.tls: "true"
traefik.http.services.filippo-orru-comments.loadbalancer.server.port: "8080"
smtp-to-telegram:
image: alecpetrosky/smtp_to_telegram
env_file:
- ./services/smtp-to-telegram/.env
environment:
ST_TELEGRAM_CHAT_IDS: "1427061497"
ST_TELEGRAM_MESSAGE_TEMPLATE: "Subject: {subject}\\n\\n{body}"
secrets:
webhook_secret:
file: ./webhook.secret
networks:
default:
external: true
name: traefik_proxy