feature: Adds docker support.
This commit is contained in:
parent
6ff28de463
commit
a03f3ef344
7 changed files with 81 additions and 2 deletions
18
README.md
18
README.md
|
@ -17,5 +17,21 @@
|
|||
1. First, check if you have a working Nix environment if you're using Nix.
|
||||
|
||||
2. Run `nix-shell`, or alternatively `source init.sh` if you're not using Nix.
|
||||
|
||||
3. After that, run the project in development mode: `npm run dev`.
|
||||
4. If you want to explore your database, run `npx prisma studio` to open the database editor.
|
||||
|
||||
4. If you want to explore your database, run `npx prisma studio` to open the database editor.
|
||||
|
||||
<h2 align="center">Production Deployment</h2>
|
||||
|
||||
> [!WARNING]
|
||||
> Deploying using docker compose is the only officially supported deployment method. Here be dragons!
|
||||
|
||||
1. Copy and change the default password (or username & db name too) from the template file `prod-docker.env`:
|
||||
```bash
|
||||
sed "s/POSTGRES_PASSWORD=nextnet/POSTGRES_PASSWORD=$(head -c 500 /dev/random | sha512sum | cut -d " " -f 1)/g" prod-docker.env > .env
|
||||
```
|
||||
|
||||
2. Build the dockerfile: `docker compose --env-file .env build`
|
||||
|
||||
3. Build the docker stack: `docker compose --env-file .env up`
|
Loading…
Add table
Add a link
Reference in a new issue