From 67bd87a0e544fcd15e7831053d2c1ea6813d3ca0 Mon Sep 17 00:00:00 2001 From: greysoh Date: Sat, 4 May 2024 19:30:50 -0400 Subject: [PATCH] chore: Use built package instead of building from source. Source 2 when --- README.md | 4 +--- docker-compose.yml | 7 ++----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 18267e4..ded45f1 100644 --- a/README.md +++ b/README.md @@ -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`

Troubleshooting

diff --git a/docker-compose.yml b/docker-compose.yml index fd26c5f..edf2361 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: