Add listen to docker-compose.yml, README instructions

This commit is contained in:
DataHoarder 2022-01-16 14:57:39 +01:00
parent 7f78830ea8
commit 4ee297c045
3 changed files with 16 additions and 2 deletions

View file

@ -2,6 +2,7 @@ DATA_MOUNT_PATH=/mnt/storage
CERTIFICATE_PATH=/example/server.crt
KEYPAIR_PATH=/example/server.key
LISTEN=:7777
TRUSTED_KEYS=
# Leave empty to disable

View file

@ -8,4 +8,16 @@ Needs a Postgres database.
`$ go run .`
Build via `$ go build -o orbeat`
Build via `$ go build -o orbeat`
### Certbot notes
* Use pip certbot
* Edit .env to add paths to certificates
```
$ certbot certonly \
--standalone \
--key-type=ecdsa --elliptic-curve=secp256r1 \
--domain <domain> \
--post-hook "docker restart orbitalbeat_orbeat_1"
```

View file

@ -57,10 +57,11 @@ services:
-connstr "user=orbeat password=orbeat dbname=orbeat sslmode=disable host=db"
-sni "${SNI}"
-trusted_keys "${TRUSTED_KEYS}"
-listen "${LISTEN}"
tmpfs:
- /tmp
ports:
- 7777:7777
- "${LISTEN}:${LISTEN}"
srg:
image: srg
build: https://git.gammaspectra.live/S.O.N.G/SynchRoGazer.git#master