-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (52 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
54 lines (52 loc) · 1.32 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
services:
# Production service - optimized runtime
bot-prod:
build:
context: .
target: production
args:
NODE_VERSION: ${NODE_VERSION}
container_name: webdev-bot-prod
restart: unless-stopped
env_file:
- .env
environment:
- NODE_ENV=production
volumes:
# Mount environment config file
- ./.env.production:/app/.env.production:ro
# Persist tracker data
- guides-data:/app/data
profiles:
- prod
# Development service - hot reload enabled
bot-dev:
build:
context: .
target: development
args:
NODE_VERSION: ${NODE_VERSION}
container_name: webdev-bot-dev
restart: unless-stopped
env_file:
- .env
environment:
- NODE_ENV=development
volumes:
# Mount source code for hot reload
- ./src:/app/src:ro
# Mount config files
- ./tsconfig.json:/app/tsconfig.json:ro
- ./biome.json:/app/biome.json:ro
# Mount package files (in case dependencies change)
- ./package.json:/app/package.json:ro
- ./pnpm-lock.yaml:/app/pnpm-lock.yaml:ro
# Mount environment config files
- ./.env.production:/app/.env.production:ro
# Persist guides tracker data
- guides-data:/app/data
profiles:
- dev
volumes:
guides-data:
driver: local