1
+ name : rodhaj_prod
2
+
3
+ services :
4
+ rodhaj :
5
+ container_name : rodhaj
6
+ image : ghcr.io/transprogrammer/rodhaj:latest
7
+ volumes :
8
+ # Do not edit the next line. If you want to change the path of the configuration file, please edit the CONFIG_LOCATION variable
9
+ - ${CONFIG_LOCATION}:/rodhaj/bot/config.yml
10
+ env_file :
11
+ - .env
12
+ ports :
13
+ - 8555:8555
14
+ depends_on :
15
+ - database
16
+ command : sh -c '/rodhaj/wait-for database:5432 -- echo "[Wait-for] PostgreSQL is fully up. Starting Rodhaj." && /rodhaj/start.sh'
17
+ restart : always
18
+
19
+ database :
20
+ container_name : rodhaj_postgres
21
+ build :
22
+ context : ./pg
23
+ dockerfile : Dockerfile
24
+ environment :
25
+ POSTGRES_PASSWORD : ${DB_PASSWORD}
26
+ POSTGRES_DB : ${DB_DATABASE_NAME}
27
+ POSTGRES_USER : ${DB_USERNAME}
28
+ POSTGRES_INITDB_ARGS : ' --data-checksums'
29
+ ports :
30
+ - 5432:5432
31
+ volumes :
32
+ # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
33
+ - database:/var/lib/postgresql/data
34
+ healthcheck :
35
+ test : pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' || exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1
36
+ interval : 5m
37
+ start_interval : 30s
38
+ start_period : 5m
39
+ restart : always
40
+
41
+ rodhaj-prometheus :
42
+ container_name : rodhaj_prometheus
43
+ ports :
44
+ - 9090:9090
45
+ image : prom/prometheus:latest
46
+ volumes :
47
+ - ./prometheus.yml:/etc/prometheus/prometheus.yml
48
+ - prometheus-data:/prometheus
49
+
50
+ # first login uses admin/admin
51
+ # add data source for http://immich-prometheus:9090 to get started
52
+ rodhaj-grafana :
53
+ container_name : rodhaj_grafana
54
+ command : ['./run.sh', '-disable-reporting']
55
+ ports :
56
+ - 3000:3000
57
+ image : grafana/grafana-enterprise:11.1.3-ubuntu
58
+ volumes :
59
+ - grafana-data:/var/lib/grafana
60
+
61
+ volumes :
62
+ database :
63
+ prometheus-data :
64
+ grafana-data:
0 commit comments