mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
add healthchecks
This commit is contained in:
parent
658a8cd6ce
commit
6d942555ff
@ -46,11 +46,9 @@ services:
|
|||||||
- ./setup.sql:/docker-entrypoint-initdb.d/setup.sql
|
- ./setup.sql:/docker-entrypoint-initdb.d/setup.sql
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=${AA_DB_ROOT_PASSWORD?err}
|
- MYSQL_ROOT_PASSWORD=${AA_DB_ROOT_PASSWORD?err}
|
||||||
|
- MARIADB_MYSQL_LOCALHOST_USER=1
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "mysqladmin", "-uroot", "-proot", "-h", "localhost", "ping"]
|
test: ["CMD", "healthcheck.sh", "--su=mysql", "--connect", "--innodb_initialized"]
|
||||||
interval: 5s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 3
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
@ -68,6 +66,9 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- "redis-data:/data"
|
- "redis-data:/data"
|
||||||
|
- ./conf/redis_healthcheck.sh:/redis_healthcheck.sh
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "redis_healthcheck.sh"]
|
||||||
|
|
||||||
allianceauth_gunicorn:
|
allianceauth_gunicorn:
|
||||||
ports:
|
ports:
|
||||||
@ -124,21 +125,17 @@ services:
|
|||||||
GF_AUTH_DATABASE_PASSWORD: ${GRAFANA_DB_PASSWORD}
|
GF_AUTH_DATABASE_PASSWORD: ${GRAFANA_DB_PASSWORD}
|
||||||
|
|
||||||
proxy:
|
proxy:
|
||||||
image: 'jc21/nginx-proxy-manager:latest'
|
image: jc21/nginx-proxy-manager:latest
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- '${PROXY_HTTP_PORT:-80}:80'
|
- ${PROXY_HTTP_PORT:-80}:80
|
||||||
- '${PROXY_DASH_PORT:-81}:81'
|
- ${PROXY_DASH_PORT:-81}:81
|
||||||
- '${PROXY_HTTPS_PORT:-443}:443'
|
- ${PROXY_HTTPS_PORT:-443}:443
|
||||||
environment:
|
|
||||||
DB_MYSQL_HOST: "proxy-db"
|
|
||||||
DB_MYSQL_PORT: 3306
|
|
||||||
DB_MYSQL_USER: "npm"
|
|
||||||
DB_MYSQL_PASSWORD: "${PROXY_MYSQL_PASS?err}"
|
|
||||||
DB_MYSQL_NAME: "npm"
|
|
||||||
volumes:
|
volumes:
|
||||||
- proxy-data:/data
|
- proxy-data:/data
|
||||||
- proxy-le:/etc/letsencrypt
|
- proxy-le:/etc/letsencrypt
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "/bin/check-health"]
|
||||||
|
|
||||||
proxy-db:
|
proxy-db:
|
||||||
image: 'jc21/mariadb-aria:latest'
|
image: 'jc21/mariadb-aria:latest'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user