-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (56 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
59 lines (56 loc) · 1.37 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
services:
dsa-study-bot:
build:
context: .
dockerfile: Dockerfile
container_name: dsa-study-bot
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- GROQ_API_KEY=${GROQ_API_KEY}
- DATABASE_URL=file:/app/data/dev.db
- NEXTAUTH_URL=${NEXTAUTH_URL:-http://localhost:3000}
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
volumes:
- dsa-data:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Discord Bot service
discord-bot:
build:
context: ./discord-bot
dockerfile: Dockerfile
container_name: dsa-discord-bot
environment:
- NODE_ENV=production
- DISCORD_TOKEN=${DISCORD_TOKEN}
- DISCORD_CLIENT_ID=${DISCORD_CLIENT_ID}
- GROQ_API_KEY=${GROQ_API_KEY}
restart: unless-stopped
profiles:
- discord
# Development service with hot reload
dsa-study-bot-dev:
build:
context: .
dockerfile: Dockerfile.dev
container_name: dsa-study-bot-dev
ports:
- "3000:3000"
environment:
- NODE_ENV=development
- GROQ_API_KEY=${GROQ_API_KEY}
volumes:
- .:/app
- /app/node_modules
- /app/.next
profiles:
- dev
volumes:
dsa-data: