2022-12-29 21:15:49 +01:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
2022-12-30 09:14:05 +01:00
|
|
|
karanage_db_service:
|
2022-12-29 21:15:49 +01:00
|
|
|
image: mysql:latest
|
|
|
|
restart: always
|
|
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
|
|
env_file:
|
|
|
|
- ./config.env
|
|
|
|
volumes:
|
2022-12-30 09:14:05 +01:00
|
|
|
- /workspace/data/karanage/db:/var/lib/mysql
|
2022-12-29 21:15:49 +01:00
|
|
|
mem_limit: 600m
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
|
|
|
|
timeout: 20s
|
|
|
|
retries: 10
|
|
|
|
|
|
|
|
karauth_adminer_service:
|
|
|
|
image: adminer:latest
|
|
|
|
restart: always
|
|
|
|
depends_on:
|
2022-12-30 09:14:05 +01:00
|
|
|
- karanage_db_service
|
2022-12-29 21:15:49 +01:00
|
|
|
ports:
|
|
|
|
- 19079:8080
|
|
|
|
links:
|
2022-12-30 09:14:05 +01:00
|
|
|
- karanage_db_service:db
|
2022-12-29 21:15:49 +01:00
|
|
|
read_only: false
|
|
|
|
mem_limit: 100m
|
|
|
|
|
2022-12-30 09:14:05 +01:00
|
|
|
karanage_back_service:
|
2022-12-29 21:15:49 +01:00
|
|
|
restart: always
|
2022-12-30 09:14:05 +01:00
|
|
|
image: gitea.atria-soft.org/kangaroo-and-rabbit/karanage:latest
|
2022-12-29 21:15:49 +01:00
|
|
|
depends_on:
|
2022-12-30 09:14:05 +01:00
|
|
|
- karanage_db_service
|
2022-12-29 21:15:49 +01:00
|
|
|
ports:
|
|
|
|
- 19080:18080
|
|
|
|
env_file:
|
|
|
|
- ./config.env
|
|
|
|
links:
|
2022-12-30 09:14:05 +01:00
|
|
|
- karanage_db_service:db
|
2022-12-29 21:15:49 +01:00
|
|
|
read_only: true
|
|
|
|
mem_limit: 1200m
|
|
|
|
healthcheck:
|
2022-12-30 09:14:05 +01:00
|
|
|
test: ["CMD", "wget" ,"http://localhost:18080/karanage/api/health_check", "-O", "/dev/null"]
|
2022-12-29 21:15:49 +01:00
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|