-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
28 lines (28 loc) · 1.09 KB
/
docker-compose.yml
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
services:
http-server-go:
image: golang:1.22
environment:
# You can override any config value present in ./impl/http-server-go/config.go
- RBTX_API_KEY=${RBTX_API_KEY:-NkCH56YZfP9psrycDLVk}
- RBTX_PATH_PREFIX=${RBTX_PATH_PREFIX:-cd5331ba}
- RBTX_DASHBOARD_SERVICE_FILE_JSON_FILE_PATH=${RBTX_DASHBOARD_SERVICE_FILE_JSON_FILE_PATH:-/data/dashboards.example.json}
- RBTX_DASHBOARD_SERVICE_IMPL=${RBTX_DASHBOARD_SERVICE_IMPL:-fileJson}
- RBTX_PORT=9001
- RBTX_RUNNABLE_SERVICE_FILE_JSON_FILE_PATH=${RBTX_RUNNABLE_SERVICE_FILE_JSON_FILE_PATH:-/data/servers.example.json}
- RBTX_RUNNABLE_SERVICE_IMPL=${RBTX_RUNNABLE_SERVICE_IMPL:-fileJson}
ports:
- "9001:9001"
volumes:
- ./data:/data
- ./impl/http-server-go:/app
working_dir: "/app"
command: bash -c "go fmt && go build -o /build/http-server-go -v && /build/http-server-go"
swagger-ui:
image: swaggerapi/swagger-ui:v5.12.0
environment:
- PORT=9002
- SWAGGER_JSON=/spec/swagger.json
ports:
- "9002:9002"
volumes:
- ./spec/_generated:/spec