Skip to content

Add docker copmose setup #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ MAIL_PASSWORD=my-app-password
[email protected]
MAIL_SERVICE=gmail
PORT=5000
NODE_END=dev
NODE_ENV=dev
GITHUB_TOKEN=a-gh-token
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
Simple server to handle form submissions via email for drawDB.
This is a simple server that serves as the backend for drawDB. It has 2 functions:

### Get started
1. Send bug reports via email
2. Handle interfacing with the GitHub REST API

Set up the environment variables following `.env.sample`
### Getting Started

Set up the environment variables by following `.env.sample`

```bash
git clone https://github.com/drawdb-io/drawdb-server.git
cd drawdb-server
npm install
npm start
```

### Docker Compose run in dev

```bash
docker compose up -d
```
18 changes: 18 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
services:
drawdb-server:
image: node:20-alpine
container_name: drawdb-server
ports:
- ${PORT:-5000}:${PORT:-5000}
working_dir: /var/www/html
volumes:
- ./:/var/www/html
command: sh -c "npm install && npm run dev"
networks:
- default
env_file:
- .env

networks:
default:
driver: bridge