Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 1.69 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (47 loc) · 1.69 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
services:
flightradar:
build:
context: .
dockerfile: Dockerfile
container_name: flightradar
ports:
- "8080:80" # Frontend via nginx
- "8083:8083" # Backend API direct access
env_file:
- .env # Docker Compose will read from .env file in the same directory
environment:
# Frontend environment variables (can override .env file values)
- VITE_FLIGHT_API_URL=${VITE_FLIGHT_API_URL}
- VITE_HERE_API_KEY=${VITE_HERE_API_KEY}
- VITE_MOCK_DATA=${VITE_MOCK_DATA}
- VITE_ENABLE_INTERPOLATION=${VITE_ENABLE_INTERPOLATION}
# Backend environment variables (can override .env file values)
- MONGODB_URI=${MONGODB_URI}
- MONGODB_DB_NAME=${MONGODB_DB_NAME}
- GRPC_SERVER_ADDRESS=${GRPC_SERVER_ADDRESS}
- SERVICE_TYPE=${SERVICE_TYPE}
- DATA_FOLDER=${DATA_FOLDER}
- MIL_ONLY=${MIL_ONLY}
- DB_RETENTION_MIN=${DB_RETENTION_MIN}
- UNKNOWN_AIRCRAFT_CRAWLING=${UNKNOWN_AIRCRAFT_CRAWLING}
- NIGHTHAWK_PROXY_URL=${NIGHTHAWK_PROXY_URL:-http://nighthawk-proxy:8000}
# Authentication environment variables
- JWT_SECRET=${JWT_SECRET}
- JWT_ACCESS_TOKEN_EXPIRE_MINUTES=${JWT_ACCESS_TOKEN_EXPIRE_MINUTES:-15}
- CHALLENGE_EXPIRE_SECONDS=${CHALLENGE_EXPIRE_SECONDS:-60}
restart: unless-stopped
nighthawk-proxy:
image: freemantp/nighthawk-proxy:latest
container_name: nighthawk-proxy
restart: unless-stopped
# Uncomment if you need MongoDB
# mongodb:
# image: mongo:latest
# container_name: flightradar-mongo
# ports:
# - "27017:27017"
# volumes:
# - mongodb_data:/data/db
# restart: unless-stopped
# volumes:
# mongodb_data: