chore: Use built package instead of building from source.

Source 2 when
This commit is contained in:
greysoh 2024-05-04 19:30:50 -04:00
parent 53983fc590
commit 67bd87a0e5
No known key found for this signature in database
GPG key ID: FE0F173B8FC01571
2 changed files with 3 additions and 8 deletions

View file

@ -33,10 +33,8 @@
```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 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>

View file

@ -1,9 +1,6 @@
services:
nextnet-api:
build:
context: "./api"
dockerfile: Dockerfile
image: nextnet-api/latest
image: ghcr.io/greysoh/api:latest
container_name: nextnet-api
restart: always
ports:
@ -13,7 +10,7 @@ services:
DATABASE_URL: "postgresql://${POSTGRES_USERNAME}:${POSTGRES_PASSWORD}@nextnet-postgres:5432/${POSTGRES_DB}?schema=nextnet"
postgres:
image: "postgres:15.4"
image: postgres:15.4
container_name: nextnet-postgres
restart: unless-stopped
environment: