-
-
Save icehongssii/994dcbadc166e6ff9787ce5d579758d6 to your computer and use it in GitHub Desktop.
docker compose for unittest
This file contains hidden or 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.8' | |
services: | |
mysql: | |
image: mysql:8.0 | |
environment: | |
MYSQL_DATABASE: test | |
MYSQL_USER: test | |
MYSQL_PASSWORD: test | |
MYSQL_ROOT_PASSWORD: test | |
ports: | |
- "3306:3306" | |
volumes: | |
- mysql_data:/var/lib/mysql | |
mongo: | |
image: mongo | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: rootpassword | |
MONGO_USER: test | |
MONGO_PASSWORD: test | |
MONGO_DB: test_adoc | |
ports: | |
- "27017:27017" | |
redis: | |
image: redis:latest | |
ports: | |
- "6379:6379" | |
volumes: | |
mysql_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment