-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 846 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (41 loc) · 846 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
42
43
version: "3.9"
services:
app-production:
container_name: app-production
build:
target: production
context: .
args:
- PORT=${PORT:-3000}
ports:
- "${PORT:-3000}:${PORT:-3000}"
# deploy:
# resources:
# limits:
# cpus: "2"
# memory: "1024m"
# reservations:
# cpus: "0.25"
# memory: "512m"
app-dev:
container_name: app-dev
restart: unless-stopped
env_file: .env
build:
target: dev
context: .
args:
- PORT=${PORT:-3000}
ports:
- "${PORT:-3000}:${PORT:-3000}"
- "9229:9229"
volumes:
- .:/app
# deploy:
# resources:
# limits:
# cpus: "2"
# memory: "1024m"
# reservations:
# cpus: "0.25"
# memory: "512m"