feat: add container setup

- build container with multi-stage Dockerfile
- change api listen port to 9001
This commit is contained in:
Kyle Robbertze 2022-06-09 17:21:29 +02:00 committed by Jonas L
parent 5d31e04b28
commit 1da42b2603
16 changed files with 1166 additions and 18 deletions

View file

@ -2,6 +2,25 @@
title: Development environment
---
## Docker-compose
To setup a docker-compose development environment, run the following commands:
```bash
# Clean and build
make clean
cp .env.dev .env
docker-compose build
# Setup
docker-compose run --rm legacy make build
docker-compose run --rm api libretime-api migrate
# Run
docker-compose up -d
docker-compose logs -f
```
## Vagrant
To use Vagrant, you need to install a virtualization engine: [VirtualBox](https://www.virtualbox.org) or Libvirt. The [vagrant-vbguest] package on Github can help maintain guest extensions on host systems using VirtualBox.