aligned docker files
This commit is contained in:
+19
-2
@@ -1,5 +1,3 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
@@ -10,7 +8,26 @@ services:
|
||||
volumes:
|
||||
# Mount source code for hot-reloading during development
|
||||
- ./src:/app/src:ro
|
||||
# Persist database to local directory
|
||||
- ./data:/data
|
||||
environment:
|
||||
- ENVIRONMENT=development
|
||||
# Optional: Override admin credentials for development
|
||||
# - ADMIN_USERNAME=admin
|
||||
# - ADMIN_PASSWORD=devpassword
|
||||
# Optional: Use Redis for token storage (uncomment redis service below)
|
||||
# - REDIS_URI=redis://redis:6379/0
|
||||
command: ["--host", "0.0.0.0", "--port", "8000", "--reload"]
|
||||
restart: unless-stopped
|
||||
|
||||
# Uncomment to enable Redis token storage
|
||||
# redis:
|
||||
# image: redis:7-alpine
|
||||
# ports:
|
||||
# - "6379:6379"
|
||||
# volumes:
|
||||
# - redis-data:/data
|
||||
# restart: unless-stopped
|
||||
# Uncomment if using Redis
|
||||
# volumes:
|
||||
# redis-data:
|
||||
|
||||
Reference in New Issue
Block a user