Closed fansichao closed 3 years ago
Hello,
Thanks for the interest in the project. Sorry I couldn't get back to you earlier.
The docker-compose.yaml
file that you included in here is totally correct, and is working fine for me, so I don't think that's the cause of the issue.
From the logs, it appears you have turned on the chevereto container, but not the database (that should explain why the Chevereto container cannot connect to the database one), maybe you execute docker-compose up chevereto
? If that's the case, then it's a simple fix. Please try to run docker-compose down -v
(to clear off everything you had earlier) and then try docker-compose up
again.
Regarding the volume, that is doable, I'm not sure why you would need to do that, but you can always add another volume and mount it at the location you needed. For example:
version: '3'
services:
db:
image: mariadb
volumes:
- database:/var/lib/mysql:rw
restart: always
networks:
- private
environment:
MYSQL_ROOT_PASSWORD: chevereto_root
MYSQL_DATABASE: chevereto
MYSQL_USER: chevereto
MYSQL_PASSWORD: chevereto
chevereto:
depends_on:
- db
image: nmtan/chevereto
restart: always
networks:
- private
environment:
CHEVERETO_DB_HOST: db
CHEVERETO_DB_NAME: chevereto
CHEVERETO_DB_USERNAME: chevereto
CHEVERETO_DB_PASSWORD: chevereto
CHEVERETO_DB_PREFIX: chv_
CHEVERETO_DEFAULT_TIMEZONE: Asia/Shanghai
volumes:
- chevereto_images:/var/www/html/images:rw
- app:/var/www/html/app:rw
ports:
- 8004:80
networks:
private:
volumes:
database:
chevereto_images:
app:
Logs
My Conf
I need help , About this Problem。
And I want volumes Config, exp:
xxxx:/var/www/html/app
, but this is Failed, can not have a config vloumes.