Skip to content
Snippets Groups Projects
Commit cea7c5e9 authored by Arie Peterson's avatar Arie Peterson
Browse files

Add and document docker-compose file

parent 64fa6f95
No related branches found
No related tags found
1 merge request!8Resolve "Document dev setup for non-vscode"
# New Project
# Helpful contact form
## How to start
### Using VSCode
You can use any editor you like, but the following instructions lead to a
containerised dev environment using VSCode or Codium:
......@@ -20,6 +22,11 @@ Next: `Ctrl+P`, start typing: `Reopen in Container` and hit `Return`.
You can now use any of the scripts defined in `package.json`, described below.
### Using any other editor
You can run the development container manually like this: `docker-compose up`.
This will run `npm start` internally, exposed to port `8080` on localhost.
## Available Scripts
### npm start
......
version: "3.7"
services:
nodejs:
build:
context: .
dockerfile: .devcontainer/Dockerfile
command: >
sh -c "pnpm install &&
npm start"
volumes:
- .:/workspaces/outage-form
user: "1000:1000"
ports:
- "8080:8080"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment