Spring Initializr

This commit is contained in:
2022-01-11 00:50:31 +01:00
parent 2499b51b9b
commit 3eeac8fc21
16 changed files with 779 additions and 0 deletions

32
docker/README.md Normal file
View File

@@ -0,0 +1,32 @@
# Okupa mi coche - Docker containers for the backend
Guide for seting up a local development environment for the backend.
## Setup
1. Install Docker in local machine
2. Add following line to /etc/hosts
```
127.0.0.1 okupamicoche-synapse
```
5. Generate data folder for Synapse
```
cd docker/synape
docker run -it --rm \
--mount type=volume,src=synapse-data,dst=/data \
-e SYNAPSE_SERVER_NAME=okupamicoche-synapse \
-e SYNAPSE_REPORT_STATS=no \
okupamicoche-synapse generate
```
6. Run dockerized Synapse
```
docker run --name okupamicoche-synapse -p 8008:8008 --mount type=volume,src=synapse-data,dst=/data \
-e SYNAPSE_CONFIG_PATH=/homeserver.yaml \
-v $(pwd)/homeserver.yaml:/homeserver.yaml -v $(pwd)/okupamicoche-appservice.yaml:/okupamicoche-appservice.yaml \
okupamicoche-synapse
```
## Run
`docker start okupamicoche-synapse`
## Inspect containter
`docker exec -t -i okupamicoche-synapse /bin/bash`