-
Notifications
You must be signed in to change notification settings - Fork 169
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 1004 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (39 loc) · 1004 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
33
34
35
36
37
38
39
40
41
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY:?NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY must be set in .env before building}
NEXT_PUBLIC_SITE_URL: ${NEXT_PUBLIC_SITE_URL:?NEXT_PUBLIC_SITE_URL must be set in .env before building}
NEXT_PUBLIC_APP_URL: ${NEXT_PUBLIC_APP_URL:?NEXT_PUBLIC_APP_URL must be set in .env before building}
ports:
- "3000:3000"
env_file:
- .env
environment:
HOSTNAME: 0.0.0.0
PORT: 3000
restart: unless-stopped
app-dev:
profiles:
- dev
build:
context: .
dockerfile: Dockerfile
target: deps
working_dir: /app
command: npm run dev
ports:
- "3000:3000"
env_file:
- .env
environment:
HOSTNAME: 0.0.0.0
PORT: 3000
WATCHPACK_POLLING: "true"
volumes:
- .:/app
- node_modules:/app/node_modules
volumes:
node_modules: