mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
fix(docker-compose): add env_file entries for backend and frontend services
This commit is contained in:
@@ -5,6 +5,8 @@ services:
|
|||||||
dockerfile: SharpbinV3.Server/Dockerfile
|
dockerfile: SharpbinV3.Server/Dockerfile
|
||||||
image: sharpbin-backend
|
image: sharpbin-backend
|
||||||
container_name: sharpbin-backend
|
container_name: sharpbin-backend
|
||||||
|
env_file:
|
||||||
|
- "backend.env"
|
||||||
environment:
|
environment:
|
||||||
ASPNETCORE_ENVIRONMENT: ${ASPNETCORE_ENVIRONMENT:-Production}
|
ASPNETCORE_ENVIRONMENT: ${ASPNETCORE_ENVIRONMENT:-Production}
|
||||||
ConnectionStrings__DefaultConnection: ${ConnectionStrings__DefaultConnection:-Data Source=/app/data/sharpbin.db}
|
ConnectionStrings__DefaultConnection: ${ConnectionStrings__DefaultConnection:-Data Source=/app/data/sharpbin.db}
|
||||||
@@ -37,6 +39,8 @@ services:
|
|||||||
GIT_COMMIT_HASH: ${GIT_COMMIT_HASH}
|
GIT_COMMIT_HASH: ${GIT_COMMIT_HASH}
|
||||||
image: sharpbin-frontend
|
image: sharpbin-frontend
|
||||||
container_name: sharpbin-frontend
|
container_name: sharpbin-frontend
|
||||||
|
env_file:
|
||||||
|
- "frontend.env"
|
||||||
environment:
|
environment:
|
||||||
VITE_API_URL: http://backend:8080
|
VITE_API_URL: http://backend:8080
|
||||||
VITE_ALLOWED_HOSTS: ${VITE_ALLOWED_HOSTS:-"localhost"}
|
VITE_ALLOWED_HOSTS: ${VITE_ALLOWED_HOSTS:-"localhost"}
|
||||||
|
|||||||
Reference in New Issue
Block a user