-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (40 loc) · 1017 Bytes
/
docker-compose.yaml
File metadata and controls
43 lines (40 loc) · 1017 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
34
35
36
37
38
39
40
41
42
43
# Example docker-compose configuration for dispatchoor
# Copy this file and adjust as needed for your environment.
services:
api:
build:
context: .
dockerfile: Dockerfile.api
args:
VERSION: ${VERSION:-dev}
GIT_COMMIT: ${GIT_COMMIT:-unknown}
BUILD_DATE: ${BUILD_DATE:-unknown}
ports:
- "9090:9090"
volumes:
- ./config.yaml:/app/config.yaml:ro
- dispatchoor-data:/app/data
environment:
- GITHUB_TOKEN=${GITHUB_TOKEN}
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9090/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 5s
web:
build:
context: .
dockerfile: Dockerfile.web
ports:
- "3000:80"
environment:
- API_URL=http://api:9090
- ENABLE_PROXY=true
depends_on:
api:
condition: service_healthy
restart: unless-stopped
volumes:
dispatchoor-data: