chevereto / docker

Template project for deploying Chevereto V4 based applications using Docker
https://v4-docs.chevereto.com/guides/docker/
MIT License
62 stars 19 forks source link

can not run success in docker #79

Open mengluo04 opened 2 hours ago

mengluo04 commented 2 hours ago

this is my docker-compose.yaml

services:
  chevereto:
    image: chevereto/chevereto:latest
    volumes:
      - /volume2/docker/chevereto/storage:/var/www/html/images/
    restart: always
    environment:
      CHEVERETO_DB_HOST: rm-2ze177m4gpq9j2kd7to.mysql.rds.aliyuncs.com
      CHEVERETO_DB_USER: tuchuang
      CHEVERETO_DB_PASS: tuchuang123-
      CHEVERETO_DB_PORT: 3306
      CHEVERETO_DB_NAME: chevereto
      CHEVERETO_ASSET_STORAGE_TYPE: local
      CHEVERETO_ASSET_STORAGE_URL: /images/_assets/
      CHEVERETO_ASSET_STORAGE_BUCKET: /var/www/html/images/_assets/
      CHEVERETO_MAX_POST_SIZE: 2G
      CHEVERETO_MAX_UPLOAD_SIZE: 2G
      CHEVERETO_SERVICING: server
    ports:
      - "10088:80"  # 将主机的 10088 端口映射到容器的 80 端口

I visit http://192.168.5.187:10088,I got an error page like this image

rodber commented 2 hours ago

Mind the permission, it must match www-data.

https://github.com/chevereto/docker/blob/4.1/docs/PERSISTENT.md#using-volumes

mengluo04 commented 2 hours ago

Mind the permission, it must match www-data.

https://github.com/chevereto/docker/blob/4.1/docs/PERSISTENT.md#using-volumes

i run into the docker and exec the command 'chown -R www-data: images/ importing/' then i see the init page,i set username,emial and password,then i got another error,like this image i see the logs,this is the error log

image image