version: "3" services: db: image: postgres restart: always environment: POSTGRES_PASSWORD: password POSTGRES_USER: tracking POSTGRES_DB: tracking volumes: - db_data:/var/lib/postgresql/data server: image: tracker restart: always depends_on: - db ports: - 60934:8000 environment: PYTHONUNBUFFERED: 1 grafana: image: grafana/grafana restart: always depends_on: - db ports: - 3000:3000 environment: GF_SERVER_ROOT_URL: "https://tracker.marks.kitchen" volumes: - grafana-data:/var/lib/grafana volumes: db_data: grafana-data: