aboutsummaryrefslogtreecommitdiff
path: root/.devcontainer/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to '.devcontainer/docker-compose.yml')
-rw-r--r--.devcontainer/docker-compose.yml25
1 files changed, 22 insertions, 3 deletions
diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml
index 3b17947..0e637d0 100644
--- a/.devcontainer/docker-compose.yml
+++ b/.devcontainer/docker-compose.yml
@@ -6,14 +6,32 @@ services:
context: .
dockerfile: Dockerfile
args:
- # [Choice] Node.js version: 16, 14, 12
- VARIANT: 14
# On Linux, you may need to update USER_UID and USER_GID below if not your local UID is not 1000.
USER_UID: 1000
USER_GID: 1000
+ environment:
+ # port and bind info
+ PORT: 3000
+ BIND_ADDRESS: localhost
+ TARGET_URL: http://localhost:3000
+
+ # Volume directory for hosted files. This directory is already created and has proper permissions
+ HOST_DIR: /dist
+
+ # DB info
+ MONGO_URI: mongodb://db:27017
+ MONGO_DB: ao-coverage
+
+ # App configuration
+ LOG_LEVEL: info
+ UPLOAD_LIMIT: 4194304
+ STAGE_1: 95
+ STAGE_2: 80
+
volumes:
- ..:/workspace:cached
+ - node-nm:/workspace/node_modules:cached
# Overrides default command so things don't shut down after the process ends.
command: sleep infinity
@@ -43,4 +61,5 @@ services:
# (Adding the "ports" property to this file will not forward from a Codespace.)
volumes:
- mongodb-data: \ No newline at end of file
+ mongodb-data:
+ node-nm: \ No newline at end of file