48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
|
version: '3'
|
||
|
|
||
|
services:
|
||
|
karusic_db_service:
|
||
|
image: mysql:latest
|
||
|
restart: always
|
||
|
command: --default-authentication-plugin=mysql_native_password
|
||
|
env_file:
|
||
|
- ./config.env
|
||
|
volumes:
|
||
|
- /workspace/data/karusic/db:/var/lib/mysql
|
||
|
mem_limit: 600m
|
||
|
healthcheck:
|
||
|
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
|
||
|
timeout: 20s
|
||
|
retries: 10
|
||
|
|
||
|
karauth_adminer_service:
|
||
|
image: adminer:latest
|
||
|
restart: always
|
||
|
depends_on:
|
||
|
- karusic_db_service
|
||
|
ports:
|
||
|
- 19079:8080
|
||
|
links:
|
||
|
- karusic_db_service:db
|
||
|
read_only: false
|
||
|
mem_limit: 100m
|
||
|
|
||
|
# karusic_back_service:
|
||
|
# build: .
|
||
|
# restart: always
|
||
|
# image: org.kar.karusic
|
||
|
# depends_on:
|
||
|
# - karusic_db_service
|
||
|
# ports:
|
||
|
# - 19080:18080
|
||
|
# env_file:
|
||
|
# - ./config.env
|
||
|
# links:
|
||
|
# - karusic_db_service:db
|
||
|
# read_only: true
|
||
|
# mem_limit: 1200m
|
||
|
# healthcheck:
|
||
|
# test: ["CMD", "wget" ,"http://localhost:18080/karusic/api/health_check", "-O", "/dev/null"]
|
||
|
# timeout: 20s
|
||
|
# retries: 3
|