Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not Setup Normal Docker Container Container #115

Closed
theDeal opened this issue Oct 4, 2022 · 0 comments · Fixed by #122
Closed

Can not Setup Normal Docker Container Container #115

theDeal opened this issue Oct 4, 2022 · 0 comments · Fixed by #122

Comments

@theDeal
Copy link

theDeal commented Oct 4, 2022

I can not create a normal Monica hq Docker Container with the nomral Settings in my Docker docker-compose.yml.

Configuration

See my File Configuration:

version: "3.4"

services:
  app:
    image: monica
    depends_on:
      - db
    ports:
      - 8080:80
    environment:
      - APP_KEY=
      - DB_HOST=db
      - DB_USERNAME=usermonica
      - DB_PASSWORD=secret
    volumes:
      - data:/var/www/html/storage
    restart: always

  db:
    image: mysql:5.7
    environment:
      - MYSQL_RANDOM_ROOT_PASSWORD=true
      - MYSQL_DATABASE=monica
      - MYSQL_USER=usermonica
      - MYSQL_PASSWORD=secret
    volumes:
      - mysql:/var/lib/mysql
    restart: always

volumes:
  data:
    name: data
  mysql:
    name: mysql

Error Message

Seems like a Database Conection Error:
Error Message:

thrown in Standard input code on line 56 Database ready.��APP_KEY already set Fatal error: Uncaught mysqli_sql_exception: Access denied for user 'monicauser'@'%' to database 'monica' in Standard input code:56 � Stack trace: #0 Standard input code(56): mysqli->query('CREATE DATABASE...') � } thrown in Standard input code on line 56 Database ready.��APP_KEY already set Fatal error: Uncaught mysqli_sql_exception: Access denied for user 'monicauser'@'%' to database 'monica' in Standard input code:56 � Stack trace: #0 Standard input code(56): mysqli->query('CREATE DATABASE...') � }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant