karideo/docker-compose.yaml

49 lines
1.1 KiB
YAML
Raw Normal View History

2020-10-25 00:39:52 +02:00
version: '3'
services:
karideo_db_service:
image: mysql:latest
restart: always
command: --default-authentication-plugin=mysql_native_password
env_file:
- ./config.env
volumes:
- /workspace/data/karideo/db:/var/lib/mysql
2022-04-01 01:41:06 +02:00
mem_limit: 600m
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
2020-10-25 00:39:52 +02:00
karauth_adminer_service:
2020-10-25 00:39:52 +02:00
image: adminer:latest
restart: always
depends_on:
- karideo_db_service
2020-10-25 00:39:52 +02:00
ports:
- 18079:8080
links:
- karideo_db_service:db
mem_limit: 100m
2020-10-25 00:39:52 +02:00
karideo_back_service:
build: .
2020-10-25 00:39:52 +02:00
restart: always
image: org.kar.karideo
depends_on:
- karideo_db_service
2020-10-25 00:39:52 +02:00
ports:
- 18080:18080
env_file:
- ./config.env
links:
- karideo_db_service:db
volumes:
- /workspace/data/karideo/media:/application/data
read_only: true
mem_limit: 1200m
healthcheck:
test: ["CMD", "wget" ,"http://localhost:18080/karideo/api/health_check", "-O", "/dev/null"]
timeout: 20s
retries: 3