33 lines
686 B
YAML
33 lines
686 B
YAML
version: '3'
|
|
|
|
services:
|
|
karauth_db_service:
|
|
image: mysql:latest
|
|
restart: always
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
env_file:
|
|
- ./config.env
|
|
ports:
|
|
- 3306:3306
|
|
volumes:
|
|
- /workspace/data/global/db:/var/lib/mysql
|
|
mem_limit: 400m
|
|
healthcheck:
|
|
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
karauth_adminer_service:
|
|
image: adminer:latest
|
|
restart: always
|
|
depends_on:
|
|
- karauth_db_service
|
|
# # condition: service_healthy
|
|
ports:
|
|
- 17079:8080
|
|
links:
|
|
- karauth_db_service:db
|
|
#read_only: true
|
|
mem_limit: 100m
|
|
|