docs(docker): update docker compose for auto install

This commit is contained in:
LinkinStars 2023-02-13 17:31:49 +08:00
parent 24aaf7f49a
commit 07d9f56975
1 changed files with 14 additions and 0 deletions

View File

@ -10,6 +10,20 @@ services:
answer: answer:
image: "${ANSWER_IMAGE}" image: "${ANSWER_IMAGE}"
environment:
- AUTO_INSTALL=true
- DB_TYPE=mysql
- DB_USERNAME=root
- DB_PASSWORD=password
- DB_HOST=127.0.0.1:3306
- DB_NAME=answer
- LANGUAGE=en_US
- SITE_NAME=answer-test
- SITE_URL=http://localhost
- CONTACT_EMAIL=test@answer.com
- ADMIN_NAME=admin123
- ADMIN_PASSWORD=admin123
- ADMIN_EMAIL=admin123@admin.com
volumes: volumes:
- answer-data:/data - answer-data:/data
deploy: deploy: