-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
57 lines (55 loc) · 1.48 KB
/
docker-compose.yaml
File metadata and controls
57 lines (55 loc) · 1.48 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
services:
dev:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "3002:3002"
- "9229:9229" # For debugging
volumes:
- .:/app
- /app/node_modules
- /app/.next
env_file:
- .env.local
environment:
- NODE_ENV=development
- NEXT_PUBLIC_ENV=development
- NEXT_TELEMETRY_DISABLED=1
command: npm run dev
# Enable debugging
stdin_open: true
tty: true
container_name: eloka-webapp-dev
networks:
- eloka-network
healthcheck:
test: ["CMD", "wget", "--spider", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
prod:
build:
context: .
dockerfile: Dockerfile
args:
- NEXT_PUBLIC_ENV=production
- DOCKER_BUILD=true
ports:
- "3002:3000"
environment:
- NODE_ENV=production
- NEXT_PUBLIC_ENV=production
- NEXT_TELEMETRY_DISABLED=1
container_name: eloka-webapp-prod
restart: unless-stopped
networks:
- eloka-network
healthcheck:
test: ["CMD", "wget", "--spider", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
networks:
eloka-network:
name: eloka-network