2022-09-29 12:09:29 +01:00
|
|
|
version: "3.8"
|
2022-06-03 08:09:47 -06:00
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
mysql:
|
2022-06-13 16:39:58 -06:00
|
|
|
image: mysql:5.7
|
2022-06-03 08:09:47 -06:00
|
|
|
platform: linux/x86_64
|
2022-06-14 09:14:45 -06:00
|
|
|
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
2022-06-03 08:09:47 -06:00
|
|
|
restart: always
|
|
|
|
|
ports:
|
2022-09-29 12:09:29 +01:00
|
|
|
- "3306:3306"
|
2022-06-03 08:09:47 -06:00
|
|
|
environment:
|
2022-06-10 17:32:58 +03:00
|
|
|
MYSQL_ROOT_PASSWORD: empty
|
2022-06-03 08:09:47 -06:00
|
|
|
MYSQL_DATABASE: oncall_local_dev
|
2022-09-29 12:09:29 +01:00
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
memory: 500m
|
|
|
|
|
cpus: '0.5'
|
2022-06-03 08:09:47 -06:00
|
|
|
healthcheck:
|
|
|
|
|
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
|
|
|
|
|
timeout: 20s
|
|
|
|
|
retries: 10
|
|
|
|
|
|
|
|
|
|
redis:
|
|
|
|
|
image: redis
|
|
|
|
|
restart: always
|
|
|
|
|
ports:
|
2022-09-29 12:09:29 +01:00
|
|
|
- "6379:6379"
|
|
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
memory: 100m
|
|
|
|
|
cpus: '0.1'
|
2022-06-03 08:09:47 -06:00
|
|
|
|
|
|
|
|
rabbit:
|
|
|
|
|
image: "rabbitmq:3.7.15-management"
|
|
|
|
|
environment:
|
|
|
|
|
RABBITMQ_DEFAULT_USER: "rabbitmq"
|
|
|
|
|
RABBITMQ_DEFAULT_PASS: "rabbitmq"
|
|
|
|
|
RABBITMQ_DEFAULT_VHOST: "/"
|
2022-09-29 12:09:29 +01:00
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
memory: 1000m
|
|
|
|
|
cpus: '0.5'
|
2022-06-03 08:09:47 -06:00
|
|
|
ports:
|
2022-09-29 12:09:29 +01:00
|
|
|
- "15672:15672"
|
|
|
|
|
- "5672:5672"
|
2022-06-03 08:09:47 -06:00
|
|
|
|
|
|
|
|
mysql-to-create-grafana-db:
|
2022-06-13 16:39:58 -06:00
|
|
|
image: mysql:5.7
|
2022-06-03 08:09:47 -06:00
|
|
|
platform: linux/x86_64
|
2022-06-10 17:32:58 +03:00
|
|
|
command: bash -c "mysql -h mysql -uroot -pempty -e 'CREATE DATABASE IF NOT EXISTS grafana CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;'"
|
2022-06-03 08:09:47 -06:00
|
|
|
depends_on:
|
|
|
|
|
mysql:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
|
|
|
|
|
grafana:
|
2022-08-17 09:41:49 -06:00
|
|
|
image: "grafana/grafana:main"
|
2022-06-03 08:09:47 -06:00
|
|
|
restart: always
|
|
|
|
|
environment:
|
|
|
|
|
GF_DATABASE_TYPE: mysql
|
|
|
|
|
GF_DATABASE_HOST: mysql
|
|
|
|
|
GF_DATABASE_USER: root
|
2022-06-10 17:32:58 +03:00
|
|
|
GF_DATABASE_PASSWORD: empty
|
2022-06-03 08:09:47 -06:00
|
|
|
GF_SECURITY_ADMIN_USER: oncall
|
|
|
|
|
GF_SECURITY_ADMIN_PASSWORD: oncall
|
|
|
|
|
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS: grafana-oncall-app
|
2022-09-29 12:09:29 +01:00
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
memory: 500m
|
|
|
|
|
cpus: '0.5'
|
2022-06-03 08:09:47 -06:00
|
|
|
volumes:
|
|
|
|
|
- ./grafana-plugin:/var/lib/grafana/plugins/grafana-plugin
|
|
|
|
|
ports:
|
2022-09-29 12:09:29 +01:00
|
|
|
- "3000:3000"
|
2022-06-03 08:09:47 -06:00
|
|
|
depends_on:
|
2022-08-17 09:41:49 -06:00
|
|
|
mysql:
|
2022-06-03 08:09:47 -06:00
|
|
|
condition: service_healthy
|