chore: Use built package instead of building from source.
Source 2 when
This commit is contained in:
parent
53983fc590
commit
67bd87a0e5
2 changed files with 3 additions and 8 deletions
|
@ -33,10 +33,8 @@
|
||||||
```bash
|
```bash
|
||||||
sed "s/POSTGRES_PASSWORD=nextnet/POSTGRES_PASSWORD=$(head -c 500 /dev/random | sha512sum | cut -d " " -f 1)/g" prod-docker.env > .env
|
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 build`
|
|
||||||
|
|
||||||
3. Build the docker stack: `docker compose --env-file .env up -d`
|
2. Build the docker stack: `docker compose --env-file .env up -d`
|
||||||
|
|
||||||
<h2 align="center">Troubleshooting</h2>
|
<h2 align="center">Troubleshooting</h2>
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
services:
|
services:
|
||||||
nextnet-api:
|
nextnet-api:
|
||||||
build:
|
image: ghcr.io/greysoh/api:latest
|
||||||
context: "./api"
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
image: nextnet-api/latest
|
|
||||||
container_name: nextnet-api
|
container_name: nextnet-api
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
|
@ -13,7 +10,7 @@ services:
|
||||||
DATABASE_URL: "postgresql://${POSTGRES_USERNAME}:${POSTGRES_PASSWORD}@nextnet-postgres:5432/${POSTGRES_DB}?schema=nextnet"
|
DATABASE_URL: "postgresql://${POSTGRES_USERNAME}:${POSTGRES_PASSWORD}@nextnet-postgres:5432/${POSTGRES_DB}?schema=nextnet"
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: "postgres:15.4"
|
image: postgres:15.4
|
||||||
container_name: nextnet-postgres
|
container_name: nextnet-postgres
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue