Last active
June 3, 2019 20:38
-
-
Save jbcurtin/4eeae818ec692edb914f98b68f460a17 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
networks: | |
corenetwork: | |
driver: bridge | |
metrics: | |
services: | |
webservice-registry: | |
deploy: | |
restart_policy: | |
condition: on-failure | |
environment: | |
REGISTRY_HTTP_ADDR: '0.0.0.0:5000' | |
#REGISTRY_HTTP_TLS_CERTIFICATE: /certs/fullchain.pem | |
#REGISTRY_HTTP_TLS_KEY: /certs/privkey.pem | |
dns: | |
- 8.8.8.8 | |
networks: | |
corenetwork: | |
aliases: | |
- webservice-registry | |
volumes: | |
- ./certs/:/certs | |
- /mnt/registry:/var/lib/registry | |
image: registry:2 | |
ports: | |
- "5000:5000" | |
caddy: | |
deploy: | |
restart_policy: | |
condition: on-failure | |
dns: | |
- 8.8.8.8 | |
networks: | |
corenetwork: | |
metrics: | |
image: "wemakeservices/caddy-docker:latest" | |
volumes: | |
- ./caddy/certs:/root/.caddy:rw | |
- ./caddy/Caddyfile:/etc/Caddyfile | |
ports: | |
- "80:80" | |
- "443:443" | |
depends_on: | |
- webservice-registry | |
cadvisor: | |
restart: always | |
deploy: | |
restart_policy: | |
condition: on-failure | |
delay: 15s | |
dns: | |
- 8.8.8.8 | |
networks: | |
metrics: | |
image: google/cadvisor:latest | |
volumes: | |
- /var/lib/docker/:/var/lib/docker:ro | |
- /dev/disk/:/dev/disk:ro | |
- /sys:/sys:ro | |
- /var/run:/var/run:ro | |
# - /dev/disk/:/dev/disk:ro | |
- /:/rootfs:ro | |
prometheus: | |
restart: always | |
dns: | |
- 8.8.8.8 | |
networks: | |
metrics: | |
image: prom/prometheus:latest | |
command: | |
- --config.file=/etc/prometheus/prometheus.yml | |
volumes: | |
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro | |
grafana-store: | |
dns: | |
- 8.8.8.8 | |
networks: | |
metrics: | |
image: postgres:10.6-alpine | |
restart: always | |
volumes: | |
- ./postgresql-data:/mnt/data:rw | |
environment: | |
POSTGRES_PASSWORD: 'asdf' | |
POSTGRES_USER: 'grafana' | |
PGDATA: '/mnt/data' | |
POSTGRES_DB: 'grafana' | |
POSTGRES_INITDB_ARGS: '-D /mnt/data' | |
grafana-sessions: | |
dns: | |
- 8.8.8.8 | |
networks: | |
metrics: | |
image: redis:5.0.3-alpine | |
grafana: | |
restart: always | |
deploy: | |
restart_policy: | |
condition: on-failure | |
delay: 15s | |
dns: | |
- 8.8.8.8 | |
networks: | |
metrics: | |
image: grafana/grafana:5.1.0 | |
volumes: | |
- ./grafana-storage:/grafana-storage:rw | |
environment: | |
GF_SERVER_ROOT_URL: 'https://gr.repins.app' | |
GF_DATABASE_URL: 'postgres://grafana:asdf@grafana-store:5432/grafana' | |
GF_DATABASE_TYPE: 'postgres' | |
GF_DATABASE_SSL_MODE: 'disable' # it kills me inside | |
GF_SECURITY_ADMIN_USER: 'appusername' | |
GF_SECURITY_ADMIN_PASSWORD: 'asdf' | |
GF_SECURITY_SECRET_KEY: 'asdf' | |
GF_SESSION_PROVIDER: 'redis' | |
GF_SESSION_PROVIDER_CONFIG: 'addr=grafana-sessions:6379,pool_size=100,prefix=grafana' | |
GF_AUTH_BASIC_ENABLED: 'false' | |
depends_on: | |
- grafana-store | |
- grafana-sessions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment