mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 19:13:07 +08:00

* wip * docker compose dev setup * commit new tilt stuff * move files into own dir * reset files back to main * use just one nginx container for both gateway and cdn * update proxy service name * make it all work when in subdir * rename more things * reset more changes * fix config * add makefile command, fix ws upgrade * add local check script * tidy * tidy up, comments, readyme * codeowners * change cdn host to localhost to avoid adding host.docker.internal to /etc/hosts * route POST /login to backend * Build nginx container with config baked in so it can be live_update-ed * fix headers
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: grafana-fs-dev
|
|
|
|
services:
|
|
proxy:
|
|
image: grafana-proxy
|
|
build:
|
|
context: .
|
|
dockerfile: proxy.dockerfile
|
|
volumes:
|
|
- ../../public/build:/cdn/public/build
|
|
- ../../public/fonts:/cdn/public/fonts
|
|
ports:
|
|
- '3000:80' # Gateway
|
|
- '3010:81' # CDN
|
|
|
|
backend:
|
|
image: grafana-backend
|
|
build:
|
|
context: .
|
|
dockerfile: backend.dockerfile
|
|
entrypoint: ['bin/grafana', 'server']
|
|
volumes:
|
|
- backend-data:/grafana/data
|
|
- ../../public/app/plugins:/grafana/public/app/plugins
|
|
environment:
|
|
GF_FEATURE_TOGGLES_ENABLE: multiTenantFrontend
|
|
GF_SERVER_CDN_URL: http://localhost:3010
|
|
ports:
|
|
- '3011:3000'
|
|
|
|
frontend-service:
|
|
image: grafana-backend
|
|
build:
|
|
dockerfile: backend.dockerfile
|
|
entrypoint: ['bin/grafana', 'server', 'target']
|
|
ports:
|
|
- '3012:3000'
|
|
environment:
|
|
GF_DEFAULT_APP_MODE: development
|
|
GF_DEFAULT_TARGET: frontend-server
|
|
GF_SECURITY_CONTENT_SECURITY_POLICY: false
|
|
GF_SERVER_CDN_URL: http://localhost:3010
|
|
|
|
volumes:
|
|
backend-data:
|