-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
62 additions
and
613 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: catherine | ||
|
||
services: | ||
catherine: | ||
container_name: catherine | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
volumes: | ||
# Do not edit the next line. If you want to change the path of the configuration file, please edit the CONFIG_LOCATION variable | ||
- ${CONFIG_LOCATION}:/catherine/bot/config.yml | ||
ports: | ||
- 6789:6789 | ||
depends_on: | ||
- database | ||
command: sh -c '/catherine/wait-for database:5432 -- echo "[Wait-for] PostgreSQL is fully up. Starting Catherine-Chan." && /catherine/start.sh' | ||
restart: always | ||
|
||
database: | ||
container_name: catherine_postgres | ||
build: | ||
context: ./pg | ||
dockerfile: Dockerfile | ||
environment: | ||
POSTGRES_PASSWORD: ${DB_PASSWORD} | ||
POSTGRES_DB: ${DB_DATABASE_NAME} | ||
POSTGRES_USER: ${DB_USERNAME} | ||
POSTGRES_INITDB_ARGS: '--data-checksums' | ||
ports: | ||
- 5432:5432 | ||
volumes: | ||
- database:/var/lib/postgresql/data | ||
healthcheck: | ||
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 | ||
interval: 5m | ||
start_interval: 30s | ||
start_period: 5m | ||
restart: always | ||
|
||
catherine-prometheus: | ||
container_name: catherine_prometheus | ||
ports: | ||
- 9090:9090 | ||
image: prom/prometheus:latest | ||
volumes: | ||
- ./prometheus.yml:/etc/prometheus/prometheus.yml | ||
- prometheus-data:/prometheus | ||
|
||
# first login uses admin/admin | ||
# add data source for http://catherine-prometheus:9090 to get started | ||
catherine-grafana: | ||
container_name: catherine_grafana | ||
command: ['./run.sh', '-disable-reporting'] | ||
ports: | ||
- 3000:3000 | ||
image: grafana/grafana-enterprise:latest-ubuntu | ||
volumes: | ||
- grafana-data:/var/lib/grafana | ||
|
||
volumes: | ||
database: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.