# Demo of rest-server with prometheus and grafana services: restserver: # NOTE: Use `docker compose up --build -d` to build the image locally # If you want to run this in production, you want auth and tls! image: restic/rest-server:latest build: context: ../.. dockerfile: Dockerfile volumes: - data:/data environment: DISABLE_AUTHENTICATION: 1 OPTIONS: "--prometheus" ports: - "127.0.0.1:8010:8000" networks: - net prometheus: image: prom/prometheus ports: - "127.0.0.1:8020:9090" volumes: - prometheusdata:/prometheus - ./prometheus:/etc/prometheus:ro depends_on: - restserver networks: - net grafana: image: grafana/grafana volumes: - grafanadata:/var/lib/grafana - ./grafana:/etc/grafana ports: - "127.0.0.1:8030:3000" environment: GF_SECURITY_CSRF_TRUSTED_ORIGINS: grafana.example.com # Put your serving domain here GF_USERS_DEFAULT_THEME: light # GF_INSTALL_PLUGINS: grafana-clock-panel,grafana-simple-json-datasource depends_on: - prometheus networks: - net networks: net: volumes: data: driver: local prometheusdata: driver: local grafanadata: driver: local