Installation:
- Using Alibaba Cloud server with Debian 11.3.
- Install normally (able to use after installation, using docker-compose). Installation path for files:
cd /root/data/docker_data/answer
- Error occurred during upgrade.
Commands used:
docker-compose down
docker-compose pull
docker-compose up -d
yml
config file:
version: "3"
services:
answer:
image: answerdev/answer
ports:
- '7906:80' # 冒号左边可以改成自己服务器未被占用的端口
restart: on-failure
volumes:
- ./answer-data:/data # 冒号左边可以改路径,现在是表示把数据存放在在当前文件夹下的 answer-data 文件夹中
db:
image: mariadb:10
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: discover2024519 # 数据库用户root的密码
MYSQL_USER: answer
MYSQL_PASSWORD: admin2024 # 数据库用户answer的密码
MYSQL_DATABASE: answer
volumes:
- ./mariadb:/var/lib/mysql # 数据存放在在当前文件夹下的 mariadb 文件夹中
restart: on-failure
What is the reason and how to solve it?
This is a new installation.