Skip to content

Commit 16b4cc7

Browse files
Adjusted readme
1 parent 54fd957 commit 16b4cc7

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ Copy the `.env.example` files to `.env` and update the variables with your own v
123123
python3 -c "import secrets; print(secrets.token_hex(32))"
124124
```
125125
2. The DATABASE, MAIL, OPENAPI, CORS, and FRONTEND_URL settings are ready to use locally.
126-
3. The OPENAPI_URL setting is commented out. Uncommenting it will hide the /docs and openapi.json URLs, which is ideal for production.
127-
4. You can check the .env.example file for more information about the variables.
126+
3. If you're using Docker, the DATABASE and MAIL settings are already configured in Docker Compose.
127+
4. The OPENAPI_URL setting is commented out. Uncommenting it will hide the /docs and openapi.json URLs, which is ideal for production.
128+
5. You can check the .env.example file for more information about the variables.
128129

129130
**Frontend (`nextjs-frontend/.env.local`):**
130131
Copy the `.env.example` files to `.env`. These values are unlikely to change, so you can leave them as they are.

docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ services:
66
- OPENAPI_OUTPUT_FILE=./shared-data/openapi.json
77
- DATABASE_URL=postgresql+asyncpg://postgres:password@db:5432/mydatabase
88
- TEST_DATABASE_URL=postgresql+asyncpg://postgres:password@db:5433/testdatabase
9+
- MAIL_SERVER=mailhog
910
ports:
1011
- "8000:8000"
1112
networks:

fastapi_backend/.env.example

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Local database (replace localhost with db if you are running the project with docker)
1+
# Local database
22
DATABASE_URL=postgresql+asyncpg://postgres:password@localhost:5432/mydatabase
33

4-
# Test database(replace localhost with db_test if you are running the project with docker)
4+
# Test database
55
TEST_DATABASE_URL=postgresql+asyncpg://postgres:password@localhost:5433/testdatabase
66

77
# Secret keys
@@ -12,7 +12,7 @@ VERIFICATION_SECRET_KEY=your_verification_secret_key
1212
# OpenAPI genrated file output path
1313
OPENAPI_OUTPUT_FILE=../nextjs-frontend/openapi.json
1414

15-
# Localhost Email configuration (replace localhost with mailhog if you are running the project with docker)
15+
# Localhost Email configuration
1616
MAIL_USERNAME=test
1717
MAIL_PASSWORD=test
1818

0 commit comments

Comments
 (0)