version: '3' services: karauth_db_service: image: mysql:latest restart: always command: --default-authentication-plugin=mysql_native_password env_file: - ./config.env ports: - 17036:3306 volumes: - /workspace/data/karauth/db:/var/lib/mysql mem_limit: 400m healthcheck: test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"] timeout: 20s retries: 10 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 karauth_back_service: build: back/ restart: always image: org.kar.auth.back depends_on: - karauth_db_service ports: - 17080:17080 env_file: - ./config.env links: - karauth_db_service:db read_only: true mem_limit: 1200m healthcheck: test: ["CMD", "wget" ,"http://localhost/health_check"] timeout: 20s retries: 3 karauth_sso_service: build: sso/ restart: always image: org.kar.auth.sso depends_on: - karauth_back_service ports: - 18082:80 read_only: true mem_limit: 100m karauth_front_service: build: front/ restart: always image: org.kar.auth.front depends_on: - karauth_back_service - karauth_sso_service ports: - 18081:80 read_only: true mem_limit: 100m