-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
42 lines (38 loc) · 1.16 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
services:
grafana:
build: grafana
ports:
- "3000:3000"
# Use the following command to debug this database:
# docker-compose exec postgres psql -U postgres
postgres:
image: postgres
environment:
POSTGRES_PASSWORD: secret
# Log all queries to the console.
command: postgres -c log_statement=all
volumes:
- postgres_data:/var/lib/postgresql/data
# Service that can be used to patch transactions in the DB.
# E.g. when a transaction should be excluded from income/expense.
patcher:
build: patcher
ports:
- "3001:3001"
environment:
POSTGRES_PASSWORD: secret
volumes:
# Manual patches are backed up in this volume and can be replayed
# from the Grafana dashboard.
- ./patcher/patches:/app/patches
# Script that loads transactions into the database.
syncer:
build: .
environment:
POSTGRES_PASSWORD: secret
# Plugin conf
IMPORTER_PLUGINS: ${IMPORTER_PLUGINS:-plugins.example_importer.importer,plugins.json_importer.importer}
CLASSIFIER_PLUGIN: ${CLASSIFIER_PLUGIN:-plugins.example_classifier.classifier}
restart: on-failure
volumes:
postgres_data: