Skip to content

Commit

Permalink
Support running app using Docker Compose
Browse files Browse the repository at this point in the history
  • Loading branch information
markhobson committed Oct 16, 2023
1 parent 19ef404 commit e31fa67
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,24 @@ The server can also be run on a different port by specifying the `PORT` environm
docker run --rm -it -e PORT=8000 -p 8000:8000 --env-file ./.env schemes
```
## Running locally using Compose
1. Build the web assets:
```bash
npm install && npm run build
```
1. Run the services:
```bash
docker compose up
```
**NOTE:** You'll need to concatenate multiline values with `\n` in `.env` for Docker to correctly parse.

1. Open http://127.0.0.1:5000

## Running formatters and linters

1. Install the dependencies:
Expand Down
6 changes: 6 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
services:
app:
build: .
env_file: .env
ports:
- "5000:5000"

0 comments on commit e31fa67

Please sign in to comment.