mirror of
https://github.com/furyhawk/home_stack.git
synced 2026-07-21 10:16:47 +00:00
Update environment variables for production deployment and adjust health check URLs
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
# Domain
|
||||
# This would be set to the production domain with an env var on deployment
|
||||
# used by Traefik to transmit traffic and aqcuire TLS certificates
|
||||
DOMAIN=localhost
|
||||
DOMAIN=furyhawk.lol
|
||||
# To test the local Traefik config
|
||||
# DOMAIN=localhost.dev.lan
|
||||
|
||||
# Used by the backend to generate links in emails to the frontend
|
||||
FRONTEND_HOST=http://localhost:5173
|
||||
FRONTEND_HOST=https://dev.furyhawk.lol
|
||||
# In staging and production, set this env var to the frontend host, e.g.
|
||||
# FRONTEND_HOST=https://dashboard.dev.lan
|
||||
|
||||
@@ -26,7 +26,7 @@ FIRST_SUPERUSER_PASSWORD=changethis
|
||||
SMTP_HOST=
|
||||
SMTP_USER=
|
||||
SMTP_PASSWORD=
|
||||
EMAILS_FROM_EMAIL=info@localhost.lan
|
||||
EMAILS_FROM_EMAIL=info@dev.lan
|
||||
SMTP_TLS=True
|
||||
SMTP_SSL=False
|
||||
SMTP_PORT=587
|
||||
|
||||
@@ -99,7 +99,7 @@ services:
|
||||
build:
|
||||
context: ./frontend
|
||||
args:
|
||||
- VITE_API_URL=http://localhost:8000
|
||||
- VITE_API_URL=https://mail.furyhawk.lol
|
||||
- NODE_ENV=development
|
||||
|
||||
playwright:
|
||||
@@ -107,7 +107,7 @@ services:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile.playwright
|
||||
args:
|
||||
- VITE_API_URL=http://localhost:8000
|
||||
- VITE_API_URL=https://mail.furyhawk.lol
|
||||
- NODE_ENV=production
|
||||
ipc: host
|
||||
depends_on:
|
||||
@@ -116,8 +116,8 @@ services:
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- VITE_API_URL=http://localhost:8000
|
||||
- MAILCATCHER_HOST=http://mailcatcher:1080
|
||||
- VITE_API_URL=https://service.furyhawk.lol
|
||||
- MAILCATCHER_HOST=https://mail.furyhawk.lol
|
||||
# For the reports when run locally
|
||||
- PLAYWRIGHT_HTML_HOST=0.0.0.0
|
||||
- CI=${CI}
|
||||
|
||||
+2
-2
@@ -109,7 +109,7 @@ services:
|
||||
- SENTRY_DSN=${SENTRY_DSN}
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/utils/health-check/"]
|
||||
test: ["CMD", "curl", "-f", "https://service.${DOMAIN?Variable not set}/api/v1/utils/health-check/"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
@@ -143,7 +143,7 @@ services:
|
||||
build:
|
||||
context: ./frontend
|
||||
args:
|
||||
- VITE_API_URL=https://api.${DOMAIN?Variable not set}
|
||||
- VITE_API_URL=https://service.${DOMAIN?Variable not set}
|
||||
- NODE_ENV=production
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
|
||||
+2
-2
@@ -1,2 +1,2 @@
|
||||
VITE_API_URL=http://localhost:8000
|
||||
MAILCATCHER_HOST=http://localhost:1080
|
||||
VITE_API_URL=https://service.furyhawk.lol
|
||||
MAILCATCHER_HOST=https://mail.furyhawk.lol
|
||||
Reference in New Issue
Block a user