File tree 5 files changed +17
-59
lines changed
5 files changed +17
-59
lines changed Original file line number Diff line number Diff line change 4
4
{
5
5
"label" : " Start dev container" ,
6
6
"type" : " shell" ,
7
- "command" : " docker compose --file .devcontainer/docker-compose.yaml up" ,
8
- "windows" : {
9
- "command" : " docker compose --file .devcontainer\\ docker-compose.yaml up"
10
- },
7
+ "command" : " docker compose up" ,
11
8
"group" : " none" ,
12
9
"presentation" : {
13
10
"reveal" : " always" ,
20
17
{
21
18
"label" : " Stop dev container" ,
22
19
"type" : " shell" ,
23
- "command" : " docker compose --file .devcontainer/docker-compose.yaml down" ,
24
- "windows" : {
25
- "command" : " docker compose --file .devcontainer\\ docker-compose.yaml down"
26
- },
20
+ "command" : " docker compose down" ,
27
21
"group" : " none" ,
28
22
"presentation" : {
29
23
"reveal" : " always" ,
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ FROM node:18-bullseye
2
+
3
+ # the root folder will be mounted at /app in the container
4
+ WORKDIR /app
5
+
6
+ # use "node" user with UID/GID 1000 (avoid permission issues with root)
7
+ USER node
8
+
9
+ # install dependencies and run in watch mode
10
+ CMD npm install && npm run dev
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ services:
24
24
depends_on :
25
25
- directus-postgres
26
26
volumes :
27
- - .. /directus:/share
27
+ - ./directus:/share
28
28
- directus-uploads:/directus/uploads
29
29
- directus-extensions:/directus-extensions
30
30
@@ -43,23 +43,21 @@ services:
43
43
# Build the app service from its folder
44
44
build :
45
45
# Build context, relative to the current file
46
- context : .. /app/.devcontainer
46
+ context : ./app
47
47
# Path to Dockerfile, relative to context
48
- dockerfile : Dockerfile
49
- args :
50
- VARIANT : ${VARIANT:-18-bullseye}
48
+ dockerfile : Dockerfile.dev
51
49
environment :
52
50
NODE_ENV : development
53
51
volumes :
54
52
# Bind-mount the app project folder into the container
55
53
- type : bind
56
- source : .. /app
54
+ source : ./app
57
55
target : /app
58
56
59
57
caddy :
60
58
image : caddy
61
59
volumes :
62
- - " .. /caddy/Caddyfile.dev:/etc/caddy/Caddyfile"
60
+ - " ./caddy/Caddyfile.dev:/etc/caddy/Caddyfile"
63
61
ports :
64
62
- " 80:80"
65
63
You can’t perform that action at this time.
0 commit comments