-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (44 loc) · 1.6 KB
/
docker-compose.yml
File metadata and controls
50 lines (44 loc) · 1.6 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
# Docker Compose example for Resgrid BigBoard Web
# This demonstrates how to deploy the web application with runtime environment variables
#
# Usage:
# 1. Build the web application: yarn build:web (or npx expo export -p web)
# 2. Build the Docker image: docker build -t resgrid-bigboard-web .
# 3. Run: docker-compose up -d
#
# The environment variables will be injected at container startup time.
version: '3.8'
services:
bigboard-web:
build:
context: .
dockerfile: Dockerfile
image: resgrid-bigboard-web:latest
container_name: resgrid-bigboard-web
ports:
- "8080:80"
environment:
# API Configuration
- BIGBOARD_BASE_API_URL=https://api.resgrid.com
- BIGBOARD_API_VERSION=v4
- BIGBOARD_RESGRID_API_URL=/api/v4
# SignalR Hub Configuration
- BIGBOARD_CHANNEL_HUB_NAME=eventingHub
- BIGBOARD_REALTIME_GEO_HUB_NAME=geolocationHub
# Authentication & API Keys
- BIGBOARD_LOGGING_KEY=${BIGBOARD_LOGGING_KEY:-}
- BIGBOARD_APP_KEY=${BIGBOARD_APP_KEY:-}
- BIGBOARD_MAPBOX_PUBKEY=${BIGBOARD_MAPBOX_PUBKEY:-}
# Monitoring & Analytics
- BIGBOARD_SENTRY_DSN=${BIGBOARD_SENTRY_DSN:-}
- BIGBOARD_COUNTLY_APP_KEY=${BIGBOARD_COUNTLY_APP_KEY:-}
- BIGBOARD_COUNTLY_SERVER_URL=${BIGBOARD_COUNTLY_SERVER_URL:-}
# Feature Flags
- BIGBOARD_MAINTENANCE_MODE=false
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost/health"]
interval: 30s
timeout: 3s
start_period: 5s
retries: 3