Skip to content

Commit

Permalink
adds infra docker compose yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
droid-mohit committed Dec 20, 2024
1 parent 029b6ba commit 15a8932
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions docker/infra.docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: "3.9"

services:
db:
image: postgres:11
environment:
- POSTGRES_DB=${POSTGRES_DB:-db}
- POSTGRES_USER=${POSTGRES_USER:-user}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-pass}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- mynetwork

redis:
image: "redis:alpine"
ports:
- "6379:6379"
networks:
- mynetwork

fluentd:
build:
context: ./fluentd
dockerfile: Dockerfile
image: fluent/fluentd:v1.12-debian-1
volumes:
- ./fluentd/fluentd.conf:/fluentd/etc/fluent.conf
ports:
- "24224:24224"
- "24224:24224/udp"
networks:
- mynetwork

networks:
mynetwork:

volumes:
postgres_data:

0 comments on commit 15a8932

Please sign in to comment.