Admin and Gallery and event change
This commit is contained in:
@@ -10,6 +10,14 @@ services:
|
||||
- "9022:3000"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- DATA_DIR=/app/data
|
||||
# Admin panel login (/admin). Set these in a .env file next to this compose file.
|
||||
- ADMIN_USERNAME=${ADMIN_USERNAME}
|
||||
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
||||
- ADMIN_SECRET=${ADMIN_SECRET}
|
||||
volumes:
|
||||
# keeps gallery / meeting / events edits and uploaded photos across rebuilds
|
||||
- rotary-data:/app/data
|
||||
# healthcheck: hits the site root to confirm the container is actually serving
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000"]
|
||||
@@ -34,3 +42,6 @@ services:
|
||||
- .:/app
|
||||
- /app/node_modules
|
||||
- /app/.next
|
||||
|
||||
volumes:
|
||||
rotary-data:
|
||||
|
||||
Reference in New Issue
Block a user