Skip to content

Instantly share code, notes, and snippets.

@davidostermann
Created April 18, 2019 16:21
Show Gist options
  • Save davidostermann/4fd6673ebd69a5099984265a2b2bccfd to your computer and use it in GitHub Desktop.
Save davidostermann/4fd6673ebd69a5099984265a2b2bccfd to your computer and use it in GitHub Desktop.
docker-compose.yml
version: '3.1'
services:
db:
image: mysql:8
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
ports:
- 3306:3306
volumes:
- "./mysql/data:/var/lib/mysql"
adminer:
image: adminer
restart: always
ports:
- 8081:8080
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
ports:
- 27017:27017
volumes:
- "./mongodb/data/db:/data/db"
mongo-express:
image: mongo-express
restart: always
ports:
- 8082:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment