-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
32 lines (29 loc) · 935 Bytes
/
docker-compose.local.yml
File metadata and controls
32 lines (29 loc) · 935 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
# Local development Docker Compose
# Usage: docker-compose -f docker-compose.local.yml up
# Make sure to copy .env.example to .env and fill in your values
version: '3.8'
services:
deepthought:
build: .
container_name: deepthought-bot-local
restart: unless-stopped
environment:
- NODE_ENV=development
- DISCORD_TOKEN=${DISCORD_TOKEN}
- DISCORD_CLIENT_ID=${DISCORD_CLIENT_ID}
- GUILD_ID=${GUILD_ID}
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
# Uncomment volumes for development with hot reload
# volumes:
# - ./src:/app/src:ro
# - ./build:/app/build
# Enable for development debugging
# ports:
# - "9229:9229" # Node.js debugging port
# - "3000:3000" # HTTP endpoints if needed
healthcheck:
test: ["CMD-SHELL", "ps aux | grep -v grep | grep node || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s