File tree Expand file tree Collapse file tree 3 files changed +27
-2
lines changed
Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 55 "dockerComposeFile" : " docker-compose.yaml" ,
66 "service" : " app" ,
77 "workspaceFolder" : " /workspace" ,
8- "shutdownAction" : " stopCompose"
8+ "shutdownAction" : " stopCompose" ,
9+ "forwardPorts" : [8080 , " mailcatcher:1080" ],
10+ "postStartCommand" : " rm -rf /db && mkdir -p /db" ,
11+ "customizations" : {
12+ "vscode" : {
13+ "extensions" : [
14+ " dbaeumer.vscode-eslint"
15+ ]
16+ }
17+ }
918
1019 // Features to add to the dev container. More info: https://containers.dev/features.
1120 // "features": {}
Original file line number Diff line number Diff line change @@ -4,6 +4,16 @@ services:
44 context : ../
55 target : dev_container
66 dockerfile : Dockerfile
7+ env_file : " ../.env"
78 volumes :
89 - ../:/workspace:cached
9- command : /bin/sh -c "while sleep 1000; do :; done"
10+ command : sleep infinity
11+ network_mode : service:mailcatcher
12+
13+ mailcatcher :
14+ image : sj26/mailcatcher@sha256:238a915586b99dd957fed9dfc27fa36518e038b9d43368fbaf2e384968b6e36f
15+ networks :
16+ - dev-net
17+
18+ networks :
19+ dev-net :
Original file line number Diff line number Diff line change @@ -64,3 +64,9 @@ release:
6464
6565login-% :
6666 ./scripts/login.ts $*
67+
68+ # For use with devcontainer
69+ start :
70+ npx tsx watch ./src/index.ts &
71+ npx tsx watch ./src/sync-worker/index.ts
72+
You can’t perform that action at this time.
0 commit comments