koduarve / mikrobill

5 stars 2 forks source link

Не запускаются контейнеры #2

Open kulakoff opened 3 months ago

kulakoff commented 3 months ago

не тартует контейнеры web

apache-1  | AH00526: Syntax error on line 39 of /usr/local/apache2/conf/httpd.conf:
apache-1  | DocumentRoot '/var/www/web' is not a directory, or is not readable

db

`mikrobill_db  | 2024-07-25T14:22:08.808991Z 8 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
kulakoff commented 3 months ago

Указал плагин плагин caching_sha2_password, контейнер db запустился

  db:
    image: mysql:8
    container_name: ${APP_NAME}_db
    environment:
      MYSQL_DATABASE: ${MYSQL_DATABASE}
      MYSQL_USER: ${MYSQL_USER}
      MYSQL_PASSWORD: ${MYSQL_PASSWORD}
      MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
    restart: always
    volumes:
      - "db-data:/var/lib/mysql"
    command: [
      '--character-set-server=utf8mb4',
      '--collation-server=utf8mb4_unicode_ci',
      '--default-authentication-plugin=caching_sha2_password'
#      '--default-authentication-plugin=mysql_native_password'
    ]