-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
33 lines (32 loc) · 975 Bytes
/
compose.yaml
File metadata and controls
33 lines (32 loc) · 975 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
31
32
33
services:
app:
build:
context: ../..
dockerfile: examples/simple/Dockerfile
ports:
- "${PORT:-8080}:8080"
volumes:
# persist credentials across restarts
- app-data:/data
environment:
- LOG_FORMAT=${LOG_FORMAT:-text}
- GITHUB_APP_INSTALLER_ENABLED=${GITHUB_APP_INSTALLER_ENABLED:-true}
- GITHUB_URL=${GITHUB_URL:-https://github.com}
- GITHUB_ORG=${GITHUB_ORG:-}
- STORAGE_MODE=envfile
- STORAGE_DIR=/data/.env
- CONFIG_WAIT_MAX_RETRIES=${CONFIG_WAIT_MAX_RETRIES:-30}
- CONFIG_WAIT_RETRY_INTERVAL=${CONFIG_WAIT_RETRY_INTERVAL:-2s}
env_file:
# load .env file if it exists (for pre-configured credentials)
- path: .env
required: false
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080/healthz"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
volumes:
app-data: