totrader/docker-compose.yaml
2020-09-06 06:27:19 -07:00

33 lines
871 B
YAML

version: '3'
volumes:
grafana:
postgres:
services:
grafana:
image: grafana/grafana:6.5.0
container_name: trader_grafana
ports:
- 127.0.0.1:3000: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"
GF_LOG_LEVEL: "debug"
volumes:
- grafana:/var/lib/grafana
postgres:
image: postgres:9.6.15-alpine
container_name: trader_postgres
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: ${DB_PASS}
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: ${DB_NAME}
volumes:
- postgres:/var/lib/postgresql/data