Created
January 4, 2024 11:38
-
-
Save ram0973/79ad0a226825ecf31c8c184609150e56 to your computer and use it in GitHub Desktop.
Postgres + Pgadmin + Rabbitmq
This file contains 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
--- | |
# Use with docker-compose -f docker-compose.yml up | |
version: "3.9" | |
services: | |
postgresql-service: | |
container_name: springapp-postgres-dev | |
network_mode: host | |
environment: | |
POSTGRES_PASSWORD: postgres | |
build: | |
context: . | |
dockerfile: ./docker/postgresql/Dockerfile | |
pgadmin4-service: | |
image: dpage/pgadmin4 | |
restart: always | |
network_mode: host | |
environment: | |
PGADMIN_DEFAULT_EMAIL: pg@pg.pg | |
PGADMIN_DEFAULT_PASSWORD: pg | |
PGADMIN_LISTEN_PORT: 8765 | |
depends_on: | |
- postgresql-service | |
rabbitmq-service: | |
image: rabbitmq:3.9.29-management | |
hostname: rabbitmq | |
restart: always | |
environment: | |
- RABBITMQ_DEFAULT_USER=rmuser | |
- RABBITMQ_DEFAULT_PASS=rmpassword | |
- RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=-rabbit log_levels [{connection,error},{default,error}] disk_free_limit 2147483648 | |
#volumes: | |
# - ./rabbitmq:/var/lib/rabbitmq | |
ports: | |
- 15672:15672 | |
- 5672:5672 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment