add: docker compose instruc

This commit is contained in:
cgi-bin/ 2023-07-12 20:18:06 +02:00 committed by GitHub
parent 12e28db861
commit 79937ea347
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,11 +11,22 @@ mkdir $HOME/.nsecbunker-config
``` ```
### Start nsecbunkerd ### Start nsecbunkerd
``` ```
docker run -d --name nsecbunkerd -v $HOME/.nsecbunker-config:/app/config pablof7z/nsecbunkerd start --admin <your-npub> docker run -d --name nsecbunkerd -v $HOME/.nsecbunker-config:/app/config pablof7z/nsecbunkerd start --admin <your-npub>
docker compose exec nsecbunker npx prisma db push
```
#### Docker-compose
Edit `docker-compose.yml` and add your nostrpublic key in `command` directive, like `start --admin npub1nftkhktqglvcsj5n4wetkpzxpy4e5x78wwj9y9p70ar9u5u8wh6qsxmzqs`
And start the container
```
docker compose up -d
docker exec -i nsecbunkerd npx prisma db push docker exec -i nsecbunkerd npx prisma db push
``` ```
### Get the connection string ### Get the connection string
``` ```