Spring Initializr
This commit is contained in:
32
docker/README.md
Normal file
32
docker/README.md
Normal 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`
|
||||
29
docker/synapse/homeserver.yaml
Normal file
29
docker/synapse/homeserver.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
server_name: "okupamicoche-synapse"
|
||||
pid_file: /data/homeserver.pid
|
||||
public_baseurl: http://okupamicoche-synapse:8008/
|
||||
listeners:
|
||||
- port: 8008
|
||||
tls: false
|
||||
type: http
|
||||
x_forwarded: true
|
||||
resources:
|
||||
- names: [ client, federation ]
|
||||
compress: false
|
||||
database:
|
||||
name: sqlite3
|
||||
args:
|
||||
database: /data/homeserver.db
|
||||
log_config: "/data/okupamicoche-synapse.log.config"
|
||||
media_store_path: "/data/media_store"
|
||||
registration_shared_secret: "Y_XNuno*Dh,T2IpHA;i,bWF^fg&x.*t=iEz*@:y5REBMhgCA63"
|
||||
report_stats: false
|
||||
macaroon_secret_key: "6VvBQj_TedGcDDB_z,-qXV1W3:.CXrRG6AWF&4p:~iGNguy&_h"
|
||||
form_secret: "FM,2TSq++sZ@Tl0atcQP"
|
||||
signing_key_path: "/data/okupamicoche-synapse.signing.key"
|
||||
trusted_key_servers:
|
||||
- server_name: "matrix.org"
|
||||
sso:
|
||||
client_whitelist:
|
||||
- http://localhost:4200/
|
||||
app_service_config_files:
|
||||
- /okupamicoche-appservice.yaml
|
||||
11
docker/synapse/okupamicoche-appservice.yaml
Normal file
11
docker/synapse/okupamicoche-appservice.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
id: "Okupa mi coche"
|
||||
url: "http://172.17.0.1:8080"
|
||||
as_token: "30c05ae90a248a4188e620216fa72e349803310ec83e2a77b34fe90be6081f46"
|
||||
hs_token: "312df522183efd404ec1cd22d2ffa4bbc76a8c1ccf541dd692eef281356bb74e"
|
||||
sender_localpart: "okupamicoche"
|
||||
namespaces:
|
||||
users: [ ]
|
||||
aliases:
|
||||
- regex: "#viaje_.*"
|
||||
exclusive: true
|
||||
rooms: [ ]
|
||||
Reference in New Issue
Block a user