Last active
February 28, 2019 10:41
-
-
Save imaximix/6a2010b710d3230327863b16e75f4b6c to your computer and use it in GitHub Desktop.
docker compose with: postgres, pgadmin, redis and 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
version: '3' | |
services: | |
rabbitmq: | |
container_name: rabbitmq | |
image: rabbitmq:3.6.10-management-alpine | |
environment: | |
RABBITMQ_DEFAULT_USER: rmq | |
RABBITMQ_DEFAULT_PASS: pass | |
restart: on-failure | |
ports: | |
- 4369:4369 | |
- 5671:5671 | |
- 5672:5672 | |
- 25672:25672 | |
- 15671:15671 | |
- 15672:15672 | |
postgres: | |
container_name: postgres | |
image: postgres:9.6.6-alpine | |
environment: | |
POSTGRES_PASSWORD: dbpass | |
POSTGRES_USER: dbuser | |
POSTGRES_DB: dbname | |
restart: on-failure | |
ports: | |
- 5432:5432 | |
pgadmin: | |
image: dpage/pgadmin4 | |
healthcheck: | |
test: | | |
apk add --no-cache sqlite | |
sqlite3 /var/lib/pgadmin/pgadmin4.db 'INSERT OR IGNORE INTO server (id, user_id, servergroup_id, name, host, port, maintenance_db, username, password, ssl_mode, use_ssh_tunnel, tunnel_port, tunnel_authentication, connect_timeout) VALUES (10, 1, 1, "chatbot_prog_1", "postgres", 5432, "dbname", "dbuser", NULL, "prefer", 0, 22, 0, 0);' '.exit' | |
exit 1 | |
interval: 0s | |
timeout: 10s | |
retries: 1 | |
depends_on: | |
- postgres | |
ports: | |
- 5050:80 | |
environment: | |
PGADMIN_DEFAULT_EMAIL: admin | |
PGADMIN_DEFAULT_PASSWORD: admin | |
restart: unless-stopped | |
redis: | |
container_name: redis | |
image: redis:3-alpine | |
ports: | |
- 6379:6379 | |
localsmtp: | |
image: djfarrelly/maildev | |
ports: | |
- "25:25" | |
- 1080:80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment