summaryrefslogtreecommitdiff
path: root/docker-compose.yml
blob: bad313e31f56ec5984850d53176de4d8c770d45b (plain)
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
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
      volumes:
        - ./static:/src/static
  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: