55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
services:
|
|
kar_db_service:
|
|
image: mysql:latest
|
|
restart: always
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=base_db_password
|
|
volumes:
|
|
- ./data:/var/lib/mysql
|
|
mem_limit: 300m
|
|
ports:
|
|
- 3906:3306
|
|
healthcheck:
|
|
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
|
|
timeout: 10s
|
|
retries: 5
|
|
# perform a 1 minute grace to let the DB to perform the initialization
|
|
start_period: 1m
|
|
start_interval: 1m
|
|
|
|
kar_mongodb_service:
|
|
image: mongo:latest
|
|
environment:
|
|
MONGO_INITDB_ROOT_USERNAME: root
|
|
MONGO_INITDB_ROOT_PASSWORD: base_db_password
|
|
ports:
|
|
- 27017:27017
|
|
volumes:
|
|
- ./dataMongo:/data/db
|
|
|
|
mongo_express_service:
|
|
image: mongo-express
|
|
restart: always
|
|
ports:
|
|
- 8081:8081
|
|
links:
|
|
- kar_mongodb_service:db
|
|
environment:
|
|
ME_CONFIG_MONGODB_ADMINUSERNAME: root
|
|
ME_CONFIG_MONGODB_ADMINPASSWORD: base_db_password
|
|
ME_CONFIG_MONGODB_URL: mongodb://root:base_db_password@db:27017/
|
|
ME_CONFIG_BASICAUTH: false
|
|
|
|
kar_adminer_service:
|
|
image: adminer:latest
|
|
restart: always
|
|
depends_on:
|
|
kar_db_service:
|
|
condition: service_healthy
|
|
links:
|
|
- kar_db_service:db
|
|
- kar_mongodb_service:dbm
|
|
ports:
|
|
- 4079:8080
|
|
mem_limit: 50m
|