Skip to content

Instantly share code, notes, and snippets.

@samrocksc
Created April 14, 2021 08:43
Show Gist options
  • Save samrocksc/8017affb35a194cc0b9cfde2c288d340 to your computer and use it in GitHub Desktop.
Save samrocksc/8017affb35a194cc0b9cfde2c288d340 to your computer and use it in GitHub Desktop.
Local DB's Dockerfile
version: '3.1'
services:
redis:
image: "redis:alpine"
ports:
- '6379:6379'
networks:
- backend
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_DATABASE: hfc-customer-feedback-dev
# MONGO_INITDB_ROOT_USERNAME: hfc
# MONGO_INITDB_ROOT_PASSWORD: admin
ports:
- '27017-27019:27017-27019'
networks:
- backend
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
postgres:
image: postgres
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "admin"
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ports:
- "5432:5432"
networks:
- postgres
restart: unless-stopped
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: "[email protected]"
PGADMIN_DEFAULT_PASSWORD: "admin"
volumes:
- pgadmin:/root/.pgadmin
ports:
- "5050:80"
networks:
- postgres
restart: unless-stopped
networks:
backend:
driver: bridge
postgres:
driver: bridge
volumes:
postgres:
pgadmin:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment