This repository was archived by the owner on Jun 19, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (85 loc) · 2.67 KB
/
Copy pathdocker-compose.yml
File metadata and controls
92 lines (85 loc) · 2.67 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: "3.8"
x-stack-environment: &stack-environment
CLUSTER_NAME: $CLUSTER_NAME
x-deploy-defaults: &deploy-defaults
update_config:
delay: 10s
order: start-first
restart_policy:
condition: on-failure
networks:
traefik-net:
name: traefik-net
external: true
monitoring:
name: monitoring
external: true
services:
website:
image: ${GHCR_MIRROR:-ghcr.io}/linearmouse/website:production-$CLUSTER_NAME
networks:
- default
- traefik-net
environment:
<<: *stack-environment
deploy:
<<: *deploy-defaults
labels:
shepherd.enable: "true"
traefik.enable: "true"
traefik.http.routers.website.rule: Host(`$ROOT_DOMAIN`, `www.$ROOT_DOMAIN`)
traefik.http.routers.website.service: website
traefik.http.services.website.loadbalancer.server.port: "3000"
traefik.http.routers.website.middlewares: strip-www
traefik.http.middlewares.strip-www.redirectregex.permanent: "true"
traefik.http.middlewares.strip-www.redirectregex.regex: ^(https?://)www\.
traefik.http.middlewares.strip-www.redirectregex.replacement: $${1}
shorturl:
image: ${GHCR_MIRROR:-ghcr.io}/linearmouse/shorturl:main
networks:
- default
- traefik-net
environment:
<<: *stack-environment
deploy:
<<: *deploy-defaults
labels:
shepherd.enable: "true"
traefik.enable: "true"
traefik.http.routers.shorturl.rule: Host(`go.$ROOT_DOMAIN`)
traefik.http.routers.shorturl.service: shorturl
traefik.http.services.shorturl.loadbalancer.server.port: "3000"
appcast:
image: ${GHCR_MIRROR:-ghcr.io}/linearmouse/appcast:main
networks:
- default
- traefik-net
- monitoring
environment:
<<: *stack-environment
GITHUB_TOKEN: $GITHUB_TOKEN
deploy:
<<: *deploy-defaults
labels:
shepherd.enable: "true"
traefik.enable: "true"
traefik.http.routers.appcast.rule: Host(`$ROOT_DOMAIN`) && Path(`/appcast.xml`)
traefik.http.routers.appcast.service: appcast
traefik.http.services.appcast.loadbalancer.server.port: "3000"
prometheus-job: appcast
prometheus-port: "9100"
schema:
image: ${GHCR_MIRROR:-ghcr.io}/linearmouse/schema:main
networks:
- default
- traefik-net
environment:
<<: *stack-environment
deploy:
<<: *deploy-defaults
labels:
shepherd.enable: "true"
traefik.enable: "true"
traefik.http.routers.schema.rule: Host(`schema.$ROOT_DOMAIN`)
traefik.http.routers.schema.service: schema
traefik.http.services.schema.loadbalancer.server.port: "3000"