karso/back/env_dev/docker-compose.yaml

29 lines
657 B
YAML

services:
db_service:
image: mysql:latest
restart: always
environment:
- MYSQL_ROOT_PASSWORD=base_db_password
volumes: # !!!! the folder is not the default set it on ssh not on long-storage data
- ./data:/var/lib/mysql
#- /workspace/data/global/db:/var/lib/mysql
mem_limit: 300m
ports:
- 3306:3306
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 10s
retries: 5
start_period: 20s
adminer_service:
image: adminer:latest
restart: always
ports:
- 10079:8080
links:
- db_service:db
#read_only: true
mem_limit: 100m