server/Database/docker-compose.yml

38 lines
773 B
YAML
Raw Normal View History

2022-02-15 16:20:16 +00:00
version: '3.8'
services:
#MongoDB (27017)
mongodb:
image: "mongo:latest"
container_name: mongoDB
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: rootpassword
ports:
- "27017:27017"
volumes:
- ./mongo/:/data/db
restart: unless-stopped
#MySQL (3306) + phpMyAdmin ()
mysql:
image: "mysql"
container_name: MySQL
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: test_db
ports:
- "3306:3306"
volumes:
- ./mysql/:/var/lib/mysql
restart: unless-stopped
phpMyAdmin:
image: "phpmyadmin/phpmyadmin:latest"
container_name: phpMyAdmin
environment:
PMA_HOST: mysql
restart: unless-stopped
depends_on:
- mysql