-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.04 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
services:
scripthammer:
build:
context: .
dockerfile: Dockerfile
target: dev
ports:
- '3000:3000'
- '6006:6006'
- '24678:24678' # Next.js HMR websocket
volumes:
- .:/app
- node_modules:/app/node_modules
- next_cache:/app/.next
env_file:
- .env
environment:
- WATCHPACK_POLLING=true
- CHOKIDAR_USEPOLLING=true
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000/']
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
networks:
- scripthammer-network
# Future services can be added here
# db:
# image: postgres:16-alpine
# environment:
# POSTGRES_DB: scripthammer
# POSTGRES_USER: scripthammer
# POSTGRES_PASSWORD: scripthammer
# volumes:
# - postgres_data:/var/lib/postgresql/data
# networks:
# - scripthammer-network
networks:
scripthammer-network:
driver: bridge
volumes:
postgres_data:
node_modules:
next_cache: