Skip to content

Commit 2fcaec2

Browse files
committed
2025.09.07/19:38
1 parent ae6ec87 commit 2fcaec2

File tree

6 files changed

+50
-5
lines changed

6 files changed

+50
-5
lines changed

.env.example

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Domain
2+
# This would be set to the production domain with an env var on deployment
3+
# used by Traefik to transmit traffic and aqcuire TLS certificates
4+
DOMAIN=localhost
5+
# To test the local Traefik config
6+
# DOMAIN=localhost.tiangolo.com
7+
8+
# Used by the backend to generate links in emails to the frontend
9+
FRONTEND_HOST=http://localhost:5173
10+
# In staging and production, set this env var to the frontend host, e.g.
11+
# FRONTEND_HOST=https://dashboard.example.com
12+
13+
# Environment: local, staging, production
14+
ENVIRONMENT=local
15+
16+
PROJECT_NAME="Full Stack FastAPI Project"
17+
STACK_NAME=full-stack-fastapi-project
18+
19+
# Backend
20+
BACKEND_CORS_ORIGINS="http://localhost,http://localhost:5173,https://localhost,https://localhost:5173,http://localhost.tiangolo.com"
21+
SECRET_KEY=changethis
22+
FIRST_SUPERUSER=[email protected]
23+
FIRST_SUPERUSER_PASSWORD=changethis
24+
25+
# Emails
26+
SMTP_HOST=
27+
SMTP_USER=
28+
SMTP_PASSWORD=
29+
EMAILS_FROM_EMAIL=[email protected]
30+
SMTP_TLS=True
31+
SMTP_SSL=False
32+
SMTP_PORT=587
33+
34+
# Postgres
35+
POSTGRES_SERVER=localhost
36+
POSTGRES_PORT=5432
37+
POSTGRES_DB=app
38+
POSTGRES_USER=postgres
39+
POSTGRES_PASSWORD=changethis
40+
41+
SENTRY_DSN=
42+
43+
# Configure these with your own Docker registry images
44+
DOCKER_IMAGE_BACKEND=backend
45+
DOCKER_IMAGE_FRONTEND=frontend

backend/app/core/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def parse_cors(v: Any) -> list[str] | str:
2727
class Settings(BaseSettings):
2828
model_config = SettingsConfigDict(
2929
# Use top level .env file (one level above ./backend/)
30-
env_file="../.env",
30+
env_file="../../.env",
3131
env_ignore_empty=True,
3232
extra="ignore",
3333
)

docker-compose.override.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,4 @@ services:
130130
networks:
131131
traefik-public:
132132
# For local dev, don't expect an external Traefik network
133-
external: false
133+
external: false

docker-compose.traefik.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ networks:
7474
# Use the previously created public network "traefik-public", shared with other
7575
# services that need to be publicly available via this Traefik
7676
traefik-public:
77-
external: true
77+
external: true

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,4 @@ volumes:
168168
networks:
169169
traefik-public:
170170
# Allow setting it to false for testing
171-
external: true
171+
external: true

frontend/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
VITE_API_URL=http://localhost:8000
2-
MAILCATCHER_HOST=http://localhost:1080
2+
MAILCATCHER_HOST=http://localhost:1081

0 commit comments

Comments
 (0)