Phase 9: containerise & deploy to Portainer
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
services:
|
||||
qbank:
|
||||
image: ghcr.io/<your-github-username>/qbank:latest
|
||||
container_name: qbank
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
DATA_DIR: /data
|
||||
PORT: "8080"
|
||||
OPENAI_API_KEY: ${OPENAI_API_KEY}
|
||||
SESSION_SECRET: ${SESSION_SECRET}
|
||||
ADMIN_USERS: ${ADMIN_USERS}
|
||||
volumes:
|
||||
- qbank-data:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "/app/qbank", "healthcheck"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
|
||||
volumes:
|
||||
qbank-data:
|
||||
Reference in New Issue
Block a user