Skip to content

Commit

Permalink
add env example
Browse files Browse the repository at this point in the history
  • Loading branch information
christianmat committed Jan 6, 2024
1 parent dc072a8 commit 0559c65
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apps/server/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
REDIS_PASSWORD=password
REDIS_ADDRESS=redis://redis:6379
NODE_ENV=development
2 changes: 2 additions & 0 deletions apps/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ RUN npm install -g pnpm
# Create app directory
WORKDIR /app

RUN mkdir -p /app/certs

# Copy application dependency manifests to the container image.
# A wildcard is used to ensure copying both package.json AND package-lock.json (when available).
# Copying this first prevents re-running pnpm install on every code change.
Expand Down
3 changes: 2 additions & 1 deletion apps/server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ services:
- '6379:6379'
networks:
- app-network
command: redis-server --requirepass ${REDIS_PASSWORD}
command: redis-server --requirepass ${REDIS_PASSWORD} --appendonly yes --save 60 1

volumes:
- redis_data:/data
env_file:
Expand Down

0 comments on commit 0559c65

Please sign in to comment.