-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (29 loc) · 1008 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (29 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: '3.8'
services:
# Canonical product name: OpenGrimoire (legacy service id was opengrimoire-survey).
opengrimoire:
build: .
ports:
- "3000:3000"
volumes:
- opengrimoire-data:/data
environment:
- NODE_ENV=production
- NEXT_PUBLIC_APP_URL=${NEXT_PUBLIC_APP_URL:-http://localhost:3000}
- OPENGRIMOIRE_SESSION_SECRET=${OPENGRIMOIRE_SESSION_SECRET:?set OPENGRIMOIRE_SESSION_SECRET}
- OPENGRIMOIRE_ADMIN_PASSWORD=${OPENGRIMOIRE_ADMIN_PASSWORD:?set OPENGRIMOIRE_ADMIN_PASSWORD}
- OPENGRIMOIRE_DB_PATH=${OPENGRIMOIRE_DB_PATH:-/data/opengrimoire.sqlite}
- ALIGNMENT_CONTEXT_API_SECRET=${ALIGNMENT_CONTEXT_API_SECRET:?set ALIGNMENT_CONTEXT_API_SECRET}
restart: unless-stopped
networks:
- opengrimoire-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
interval: 30s
timeout: 10s
retries: 3
volumes:
opengrimoire-data:
networks:
opengrimoire-network:
driver: bridge