wowstash/docker-compose.yaml

41 lines
1.1 KiB
YAML
Raw Normal View History

2020-08-21 07:39:59 +00:00
version: '3'
volumes:
grafana:
2020-08-21 07:39:59 +00:00
services:
db:
image: postgres:9.6.15-alpine
container_name: wowstash_db
2021-04-26 13:25:08 +00:00
restart: unless-stopped
2020-08-21 07:39:59 +00:00
ports:
2021-05-17 19:51:22 +00:00
- 127.0.0.1:5432:5432
2020-08-21 07:39:59 +00:00
environment:
POSTGRES_PASSWORD: ${DB_PASS}
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: ${DB_NAME}
2020-08-22 19:34:02 +00:00
volumes:
2020-08-25 20:16:14 +00:00
- ./data/postgresql:/var/lib/postgresql/data
2020-08-22 19:34:02 +00:00
cache:
2020-08-21 07:39:59 +00:00
image: redis:latest
container_name: wowstash_cache
2020-08-21 07:39:59 +00:00
ports:
2021-05-17 19:51:22 +00:00
- 127.0.0.1:6379:6379
grafana:
image: grafana/grafana:6.5.0
2020-12-30 22:56:45 +00:00
container_name: wowstash_ops
restart: unless-stopped
ports:
- 127.0.0.1:3001:3000
environment:
HOSTNAME: grafana
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_PASSWORD}
GF_SERVER_ROOT_URL: ${GRAFANA_URL}
GF_ANALYTICS_REPORTING_ENABLED: "false"
GF_ANALYTICS_CHECK_FOR_UPDATES: "false"
GF_USERS_ALLOW_SIGN_UP: "false"
GF_USERS_ALLOW_ORG_CREATE: "false"
volumes:
- ./files/dashboards.yaml:/etc/grafana/provisioning/dashboards/default.yaml:ro
- ./files/wowstash_ops.json:/var/lib/grafana/dashboards/wowstash_ops.json:ro
- grafana:/var/lib/grafana