Skip to content

Instantly share code, notes, and snippets.

@ferdousulhaque
Created August 26, 2018 10:48
Show Gist options
  • Save ferdousulhaque/ec186f942eaa38e6bb4cbd97cd185f5c to your computer and use it in GitHub Desktop.
Save ferdousulhaque/ec186f942eaa38e6bb4cbd97cd185f5c to your computer and use it in GitHub Desktop.
Docker Fluentd Redis and PostGRESQL
version: '2'
services:
fluentd:
image: 'fluent/fluentd'
ports:
- "24224:24224"
- "24224:24224/udp"
environment:
- FLUENT_UID=1000
volumes:
- ./data:/fluentd/log
- ./fluent.conf:/fluentd/etc/fluent.conf
- ./docker-entrypoint.sh:/tmp/docker-entrypoint.sh
redis:
image: 'bitnami/redis:latest'
ports:
- "6379:6379"
environment:
- DISABLE_COMMANDS=FLUSHDB,FLUSHALL,CONFIG
- ALLOW_EMPTY_PASSWORD=yes
postgres:
restart: always
image: postgres:latest
environment:
- POSTGRES_PASSWORD=12345!
volumes:
- ./dbdata:/var/lib/postgresql/data
ports:
- "54329:5432"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment