-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (53 loc) · 1.64 KB
/
docker-compose.yml
File metadata and controls
54 lines (53 loc) · 1.64 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:
# Next.js development service with hot reload
nextjs-dev:
image: ghcr.io/kss-it-committee/kss-it-committee.github.io-dev:main
pull_policy: always
# Uncomment to build from Dockerfile
# build:
# context: .
# dockerfile: ./docker/next.js-dev/Dockerfile
ports:
- "3000:3000"
container_name: kss-it-nextjs-dev
volumes:
# Mount source files for live changes
- ./src:/app/src
- ./public:/app/public
- ./next.config.ts:/app/next.config.ts
- ./tsconfig.json:/app/tsconfig.json
- ./eslint.config.mjs:/app/eslint.config.mjs
environment:
- NODE_ENV=development
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
# Next.js production service (builds on start)
nextjs-prod:
image: ghcr.io/kss-it-committee/kss-it-committee.github.io-prod:main
pull_policy: always
# Uncomment to build from Dockerfile
# build:
# context: .
# dockerfile: ./docker/next.js-prod/Dockerfile
ports:
- "3001:3000"
container_name: kss-it-nextjs-prod
volumes:
# Mount source files for live changes
- ./src:/app/src
- ./public:/app/public
- ./next.config.ts:/app/next.config.ts
- ./tsconfig.json:/app/tsconfig.json
- ./eslint.config.mjs:/app/eslint.config.mjs
environment:
- NODE_ENV=production
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s