49 lines
1021 B
YAML
49 lines
1021 B
YAML
version: '3.7'
|
|
|
|
services:
|
|
adminer:
|
|
image: adminer
|
|
restart: always
|
|
links:
|
|
- "mysql"
|
|
depends_on:
|
|
- "mysql"
|
|
ports:
|
|
- 33306:8080
|
|
# network_mode: bridge
|
|
mysql:
|
|
image: mariadb:10.11
|
|
restart: always
|
|
environment:
|
|
MARIADB_ROOT_PASSWORD: example
|
|
ports:
|
|
- "23306:3306"
|
|
volumes:
|
|
- ./data/mysql:/var/lib/mysql
|
|
# Without this, will get error when start up in WSL2
|
|
# network_mode: bridge
|
|
|
|
mongo:
|
|
image: mongo:6
|
|
restart: always
|
|
ports:
|
|
- 27017:27017
|
|
environment:
|
|
MONGO_INITDB_ROOT_USERNAME: root
|
|
MONGO_INITDB_ROOT_PASSWORD: example
|
|
# network_mode: bridge
|
|
mongo-express:
|
|
image: mongo-express
|
|
restart: always
|
|
links:
|
|
- "mongo"
|
|
depends_on:
|
|
- "mongo"
|
|
ports:
|
|
- 37017:8081
|
|
environment:
|
|
ME_CONFIG_MONGODB_ADMINUSERNAME: root
|
|
ME_CONFIG_MONGODB_ADMINPASSWORD: example
|
|
ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/
|
|
# network_mode: bridge
|