Browse Source

Add PostgreSQL related env in docker compose mode

pull/1566/head
Zader Zheng 3 years ago
committed by GitHub
parent
commit
437ae66118
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions
  1. 8
      README.md

8
README.md

@ -156,6 +156,10 @@ Set the superuser account credentials in the `./config/env.example` file:
ADMIN_USERNAME=admin ADMIN_USERNAME=admin
ADMIN_PASSWORD=password ADMIN_PASSWORD=password
ADMIN_EMAIL=admin@example.com ADMIN_EMAIL=admin@example.com
POSTGRES_USER=doccano
POSTGRES_PASSWORD=doccano
POSTGRES_DB=doccano
``` ```
#### Production #### Production
@ -163,7 +167,7 @@ ADMIN_EMAIL=admin@example.com
After running the following command, access <http://0.0.0.0/>. After running the following command, access <http://0.0.0.0/>.
```bash ```bash
docker-compose -f docker-compose.prod.yml --env-file ./config/.env.example up
docker-compose -f docker-compose.prod.yml --env-file ./config/env.example up
``` ```
#### Development #### Development
@ -171,7 +175,7 @@ docker-compose -f docker-compose.prod.yml --env-file ./config/.env.example up
After running the following command, access <http://127.0.0.1:3000/>. If you want to use the admin site, please access <http://127.0.0.1:8000/admin/>. After running the following command, access <http://127.0.0.1:3000/>. If you want to use the admin site, please access <http://127.0.0.1:8000/admin/>.
```bash ```bash
docker-compose -f docker-compose.dev.yml --env-file ./config/.env.example up
docker-compose -f docker-compose.dev.yml --env-file ./config/env.example up
``` ```
You can run the the test codes for the backend with the following command: You can run the the test codes for the backend with the following command:

Loading…
Cancel
Save