Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
35eddee2
Unverified
Commit
35eddee2
authored
Oct 01, 2018
by
Marcus Efraimsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devenv: add postgres ha test config example
parent
1be8fb76
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
+25
-5
devenv/docker/ha_test/docker-compose.yaml
+25
-5
No files found.
devenv/docker/ha_test/docker-compose.yaml
View file @
35eddee2
...
@@ -8,18 +8,33 @@ services:
...
@@ -8,18 +8,33 @@ services:
volumes
:
volumes
:
-
/var/run/docker.sock:/tmp/docker.sock:ro
-
/var/run/docker.sock:/tmp/docker.sock:ro
mysql
:
db
:
image
:
mysql
image
:
mysql
environment
:
environment
:
MYSQL_ROOT_PASSWORD
:
rootpass
MYSQL_ROOT_PASSWORD
:
rootpass
MYSQL_DATABASE
:
grafana
MYSQL_DATABASE
:
grafana
MYSQL_USER
:
grafana
MYSQL_USER
:
grafana
MYSQL_PASSWORD
:
password
MYSQL_PASSWORD
:
password
ports
:
-
3306
healthcheck
:
healthcheck
:
test
:
[
"
CMD"
,
"
mysqladmin"
,
"
ping"
,
"
-h"
,
"
localhost"
]
test
:
[
"
CMD"
,
"
mysqladmin"
,
"
ping"
,
"
-h"
,
"
localhost"
]
timeout
:
10s
timeout
:
10s
retries
:
10
retries
:
10
# db:
# image: postgres:9.3
# environment:
# POSTGRES_DATABASE: grafana
# POSTGRES_USER: grafana
# POSTGRES_PASSWORD: password
# ports:
# - 5432
# healthcheck:
# test: ["CMD-SHELL", "pg_isready -d grafana -U grafana"]
# timeout: 10s
# retries: 10
grafana
:
grafana
:
image
:
grafana/grafana:dev
image
:
grafana/grafana:dev
volumes
:
volumes
:
...
@@ -27,18 +42,23 @@ services:
...
@@ -27,18 +42,23 @@ services:
environment
:
environment
:
-
VIRTUAL_HOST=grafana.loc
-
VIRTUAL_HOST=grafana.loc
-
GF_SERVER_ROOT_URL=http://grafana.loc
-
GF_SERVER_ROOT_URL=http://grafana.loc
-
GF_DATABASE_TYPE=mysql
-
GF_DATABASE_HOST=mysql:3306
-
GF_DATABASE_NAME=grafana
-
GF_DATABASE_NAME=grafana
-
GF_DATABASE_USER=grafana
-
GF_DATABASE_USER=grafana
-
GF_DATABASE_PASSWORD=password
-
GF_DATABASE_PASSWORD=password
-
GF_DATABASE_TYPE=mysql
-
GF_DATABASE_HOST=db:3306
-
GF_SESSION_PROVIDER=mysql
-
GF_SESSION_PROVIDER=mysql
-
GF_SESSION_PROVIDER_CONFIG=grafana:password@tcp(mysql:3306)/grafana?allowNativePasswords=true
-
GF_SESSION_PROVIDER_CONFIG=grafana:password@tcp(db:3306)/grafana?allowNativePasswords=true
# - GF_DATABASE_TYPE=postgres
# - GF_DATABASE_HOST=db:5432
# - GF_DATABASE_SSL_MODE=disable
# - GF_SESSION_PROVIDER=postgres
# - GF_SESSION_PROVIDER_CONFIG=user=grafana password=password host=db port=5432 dbname=grafana sslmode=disable
-
GF_LOG_FILTERS=alerting.notifier:debug,alerting.notifier.slack:debug
-
GF_LOG_FILTERS=alerting.notifier:debug,alerting.notifier.slack:debug
ports
:
ports
:
-
3000
-
3000
depends_on
:
depends_on
:
mysql
:
db
:
condition
:
service_healthy
condition
:
service_healthy
prometheus
:
prometheus
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment