Skip to content

Instantly share code, notes, and snippets.

@icehongssii
Created November 11, 2024 01:29
Show Gist options
  • Save icehongssii/994dcbadc166e6ff9787ce5d579758d6 to your computer and use it in GitHub Desktop.
Save icehongssii/994dcbadc166e6ff9787ce5d579758d6 to your computer and use it in GitHub Desktop.
docker compose for unittest
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