You've already forked AstralRinth
forked from didirus/AstralRinth
* feat(docker-compose): give all containers a name
* fix(docker-compose): fix healthcheck for clickhouse container
For some reason, its CMD form always returned a healthcheck error, at
least in Podman.
* fix(editorconfig): address formatting regression for YAML files introduced in 8af65f58d9
* fix: frontend temp editorconfig change
* fix(editorconfig): add more extensions that use 2 spaces indentation
---------
Co-authored-by: Calum H. (IMB11) <hendersoncal117@gmail.com>
65 lines
1.5 KiB
YAML
65 lines
1.5 KiB
YAML
name: labrinth
|
|
services:
|
|
postgres_db:
|
|
image: postgres:alpine
|
|
container_name: labrinth-postgres
|
|
volumes:
|
|
- db-data:/var/lib/postgresql/data
|
|
ports:
|
|
- '5432:5432'
|
|
environment:
|
|
POSTGRES_USER: labrinth
|
|
POSTGRES_PASSWORD: labrinth
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
|
healthcheck:
|
|
test: ['CMD', 'pg_isready']
|
|
interval: 3s
|
|
timeout: 5s
|
|
retries: 3
|
|
meilisearch:
|
|
image: getmeili/meilisearch:v1.12.0
|
|
container_name: labrinth-meilisearch
|
|
restart: on-failure
|
|
ports:
|
|
- '7700:7700'
|
|
volumes:
|
|
- meilisearch-data:/data.ms
|
|
environment:
|
|
MEILI_MASTER_KEY: modrinth
|
|
MEILI_HTTP_PAYLOAD_SIZE_LIMIT: 107374182400
|
|
healthcheck:
|
|
test: ['CMD', 'curl', '--fail', 'http://localhost:7700/health']
|
|
interval: 3s
|
|
timeout: 5s
|
|
retries: 3
|
|
redis:
|
|
image: redis:alpine
|
|
container_name: labrinth-redis
|
|
restart: on-failure
|
|
ports:
|
|
- '6379:6379'
|
|
volumes:
|
|
- redis-data:/data
|
|
healthcheck:
|
|
test: ['CMD', 'redis-cli', 'PING']
|
|
interval: 3s
|
|
timeout: 5s
|
|
retries: 3
|
|
clickhouse:
|
|
image: clickhouse/clickhouse-server
|
|
container_name: labrinth-clickhouse
|
|
ports:
|
|
- '8123:8123'
|
|
environment:
|
|
CLICKHOUSE_USER: default
|
|
CLICKHOUSE_PASSWORD: default
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'clickhouse-client --query "SELECT 1"']
|
|
interval: 3s
|
|
timeout: 5s
|
|
retries: 3
|
|
volumes:
|
|
meilisearch-data:
|
|
db-data:
|
|
redis-data:
|