Skip to content

Commit

Permalink
synchronize .env and compose files
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandstetter committed Jan 29, 2018
1 parent a4547fb commit 7d98924
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
18 changes: 12 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ services:
INFLUXDB_HTTP_LOG_ENABLED: "false"
LOGSTASH_FIELDS: "service=influxdb"
volumes:
- "${MON_DOCKER_VOL_ROOT}/influxdb:/var/lib/influxdb:rw"
- "${MON_BACKUP_DIR}/influxdb_backup:/influxdb_backup:rw"
- "${MON_DOCKER_VOL_ROOT}/influxdb:/var/lib/influxdb:Z"
- "${MON_BACKUP_DIR}/influxdb_backup:/influxdb_backup:Z"
influxdb-init:
hostname: docker-host
image: fest/influxdb-init:${INFLUXDB_INIT_VERSION}
Expand All @@ -39,6 +39,7 @@ services:
restart: on-failure
environment:
LOGSTASH_FIELDS: "service=cadvisor"
privileged: true
volumes:
- "/:/rootfs:ro"
- "/var/run:/var/run:rw"
Expand All @@ -52,6 +53,9 @@ services:
environment:
NON_LOCAL_TRAFFIC: "true"
LOGSTASH_FIELDS: "service=monasca-agent-forwarder"
OS_USERNAME: ${MON_AGENT_USERNAME}
OS_PASSWORD: ${MON_AGENT_PASSWORD}
OS_PROJECT_NAME: ${MON_AGENT_PROJECT_NAME}
depends_on:
- monasca

Expand Down Expand Up @@ -82,7 +86,7 @@ services:
environment:
LOGSTASH_FIELDS: "service=kafka"
volumes:
- "${MON_DOCKER_VOL_ROOT}/kafka:/data:rw"
- "${MON_DOCKER_VOL_ROOT}/kafka:/data:Z"
depends_on:
- zookeeper
kafka-init:
Expand Down Expand Up @@ -112,8 +116,8 @@ services:
MYSQL_ROOT_PASSWORD: secretmysql
LOGSTASH_FIELDS: "service=mysql"
volumes:
- "${MON_DOCKER_VOL_ROOT}/mysql:/var/lib/mysql:rw"
- "${MON_BACKUP_DIR}/mysql_backup:/mysql_backup:rw"
- "${MON_DOCKER_VOL_ROOT}/mysql:/var/lib/mysql:Z"
- "${MON_BACKUP_DIR}/mysql_backup:/mysql_backup:Z"
mysql-init:
hostname: docker-host
image: fest/mysql-init:${MYSQL_INIT_VERSION}
Expand Down Expand Up @@ -150,6 +154,7 @@ services:
restart: on-failure
environment:
LOGSTASH_FIELDS: "service=monasca-api"
DELEGATE_AUTHORIZED_ROLES: "monitoring-delegate"
depends_on:
- influxdb
- keystone
Expand Down Expand Up @@ -229,7 +234,7 @@ services:
GF_AUTH_KEYSTONE_DEFAULT_DOMAIN: "Default"
LOGSTASH_FIELDS: "service=grafana"
volumes:
- "${MON_DOCKER_VOL_ROOT}/grafana/data:/var/lib/grafana/data:rw"
- "${MON_DOCKER_VOL_ROOT}/grafana/data:/var/lib/grafana/data:Z"
ports:
- "3000:3000"
depends_on:
Expand All @@ -242,6 +247,7 @@ services:
environment:
GRAFANA_ADMIN_USERNAME: ${MON_GRAFANA_ADMIN_USER}
GRAFANA_ADMIN_PASSWORD: ${MON_GRAFANA_ADMIN_PASSWORD}
GRAFANA_USERS: ${MON_GRAFANA_USERS}
LOGSTASH_FIELDS: "service=grafana-init"
depends_on:
- grafana
2 changes: 1 addition & 1 deletion dotenv2
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ MON_ELASTICSEARCH_DATA_RETENTION_DAYS=60

# Retention perion for InfluxDB database
MON_INFLUXDB_RETENTION=60d

################################################################################
# Monasca-notification plugins
# -A list of notification plugins can be provided by setting NF_PLUGINS to a
Expand Down Expand Up @@ -128,7 +129,6 @@ NF_SLACK_INSECURE=
NF_SLACK_PROXY=



################################################################################
# Image versions
################################################################################
Expand Down
8 changes: 6 additions & 2 deletions log-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ services:
environment:
LOGSTASH_FIELDS: "service=elasticsearch"
volumes:
- ${MON_DOCKER_VOL_ROOT}/elasticsearch/data:/usr/share/elasticsearch/data
- ${MON_BACKUP_DIR}/elasticsearch_backup:/elasticsearch_backup
- ${MON_DOCKER_VOL_ROOT}/elasticsearch/data:/usr/share/elasticsearch/data:Z
- ${MON_BACKUP_DIR}/elasticsearch_backup:/elasticsearch_backup:Z

elasticsearch-init:
hostname: docker-host
Expand Down Expand Up @@ -112,6 +112,9 @@ services:
environment:
LOGSPOUT: ignore
LOGSTASH_FIELDS: "service=monasca-log-agent"
OS_USERNAME: ${MON_AGENT_USERNAME}
OS_PASSWORD: ${MON_AGENT_PASSWORD}
OS_PROJECT_NAME: ${MON_AGENT_PROJECT_NAME}
depends_on:
- log-api
- keystone
Expand All @@ -120,6 +123,7 @@ services:
hostname: docker-host
image: fest/logspout:${MON_LOGSPOUT_VERSION}
restart: on-failure
privileged: true
environment:
RETRY_SEND: "true"
LOGSPOUT: ignore
Expand Down

0 comments on commit 7d98924

Please sign in to comment.