2020-10-02 21:57:48 +02:00
|
|
|
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:
|
2023-05-08 23:31:50 +02:00
|
|
|
- ./db:/var/lib/mysql
|
2020-10-02 21:57:48 +02:00
|
|
|
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:
|
2023-05-08 23:31:50 +02:00
|
|
|
- 10079:8080
|
2020-10-02 21:57:48 +02:00
|
|
|
links:
|
|
|
|
- karauth_db_service:db
|
|
|
|
#read_only: true
|
|
|
|
mem_limit: 100m
|
|
|
|
|