-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
30 lines (29 loc) · 944 Bytes
/
compose.yaml
File metadata and controls
30 lines (29 loc) · 944 Bytes
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
services:
web:
image: nginx:alpine
ports:
- "${PORT:-8080}:80"
environment:
# Auto-refresh interval in seconds (default: 300 = 5 minutes).
REFRESH_INTERVAL: "${REFRESH_INTERVAL:-300}"
# Comma-separated list of GitHub namespaces (orgs/users) to hide from the PR list.
HIDDEN_NAMESPACES: "${HIDDEN_NAMESPACES:-}"
volumes:
- ./index.html:/usr/share/nginx/html/index.html:ro
- ./js:/usr/share/nginx/html/js:ro
- ./nginx.conf.template:/etc/nginx/templates/default.conf.template:ro
- ./entrypoint.sh:/entrypoint.sh:ro
entrypoint: ["/bin/sh", "/entrypoint.sh"]
command: ["nginx", "-g", "daemon off;"]
secrets:
- gh_token
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost"]
interval: 30s
timeout: 5s
retries: 3
start_period: 5s
secrets:
gh_token:
file: ./secrets/gh_token