Skip to content

Commit

Permalink
Docker/config updates
Browse files Browse the repository at this point in the history
  • Loading branch information
humphd committed Feb 13, 2021
1 parent 1ac781b commit b783703
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 20 deletions.
13 changes: 0 additions & 13 deletions src/api/config/filebeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,9 @@ filebeat.autodiscover:
processors:
- add_docker_metadata: ~

#filebeat.inputs:
# - type: log
# enabled: true
# paths:
# - '/var/lib/docker/containers/*/*.log'
# json.message_key: log
# json.keys_under_root: true

#monitoring.enabled: true

output.elasticsearch:
hosts: ['http://elasticsearch:9200']

#output.console:
# pretty: true

setup.kibana:
host: 'http://kibana:5601'
dashboards.enabled: true
34 changes: 27 additions & 7 deletions src/api/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
container_name: 'traefik'
restart: unless-stopped
command:
- '--log.level=DEBUG'
- '--api.insecure=true'
- '--providers.docker=true'
- '--providers.docker.exposedbydefault=true'
Expand All @@ -17,8 +18,6 @@ services:
- '8080:8080'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
- 'traefik.enable=true'

# ELK Stack
elasticsearch:
Expand Down Expand Up @@ -118,22 +117,43 @@ services:
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
- KIBANA_HOST=http://kibana:5601
ports:
- '8200'
healthcheck:
test:
[
'CMD',
'curl',
'--write-out',
"'HTTP %{http_code}'",
'--silent',
'--output',
'/dev/null',
'http://apm:8200/healthcheck',
]
retries: 10
interval: 10s
depends_on:
elasticsearch:
condition: service_healthy
kibana:
condition: service_healthy

# Micro Services
image-service:
container_name: 'image-service'
image:
container_name: 'image'
restart: unless-stopped
build:
context: ./image
dockerfile: Dockerfile
environment:
- IMAGE_PORT=4444
- SERVICE_NAME=image
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
- ELASTIC_APM_SERVER_URL=http://apm:8200
depends_on:
- traefik
elasticsearch:
condition: service_healthy
traefik:
condition: service_started
ports:
- '4444'
labels:
Expand Down

0 comments on commit b783703

Please sign in to comment.