Skip to content

Commit 8359fc3

Browse files
author
Lasim
committed
fix(backend): set default value for DEPLOYSTACK_ENCRYPTION_SECRET
1 parent 7193e89 commit 8359fc3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.8'
2-
31
services:
42
postgres:
53
image: postgres:18-alpine
@@ -31,7 +29,7 @@ services:
3129
- NODE_ENV=production
3230
- PORT=3000
3331
- DEPLOYSTACK_FRONTEND_URL=http://localhost:8080
34-
- DEPLOYSTACK_ENCRYPTION_SECRET=${DEPLOYSTACK_ENCRYPTION_SECRET}
32+
- DEPLOYSTACK_ENCRYPTION_SECRET=${DEPLOYSTACK_ENCRYPTION_SECRET:-CHANGE_ME_HERE}
3533
- POSTGRES_HOST=postgres
3634
- POSTGRES_PORT=5432
3735
- POSTGRES_DATABASE=deploystack

services/backend/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ RUN npm install --omit=dev --no-package-lock
1212
# Copy pre-built files
1313
COPY services/backend/dist ./dist
1414

15+
# Copy Drizzle migrations (required for database schema creation)
16+
COPY services/backend/drizzle ./drizzle
17+
1518
# Create the shared directory structure
1619
RUN mkdir -p /shared/public/img/
1720
COPY services/shared/public/img/favicon.ico /shared/public/img/

0 commit comments

Comments
 (0)