From 72f0583eeb6e69851fcc3045ea1aaa4f9be27ca0 Mon Sep 17 00:00:00 2001 From: Farhan Khan Date: Wed, 22 Jan 2025 02:19:09 +0000 Subject: [PATCH] Updating docker files --- docker-compose.yml | 11 ++++++----- fedilogger/Dockerfile | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ed6f8c5..92ea803 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,8 +1,6 @@ -version: "3.9" - services: fedilogue: - build: fedilogue/ + build: fedilogger/ depends_on: - db ports: @@ -11,14 +9,17 @@ services: build: restapi/ ports: - "127.0.0.1:6431:6432" + environment: + POSTGRES_USER: $PGUSER + POSTGRES_PASSWORD: $PGPASS + POSTGRES_DB: $PGDATABASE depends_on: - db db: image: postgres:alpine - restart: always environment: POSTGRES_USER: $PGUSER POSTGRES_PASSWORD: $PGPASS POSTGRES_DB: $PGDATABASE volumes: - - ./postgres-data:/var/lib/postgresql \ No newline at end of file + - ./postgres-data:/var/lib/postgresql diff --git a/fedilogger/Dockerfile b/fedilogger/Dockerfile index ba9283f..941f46e 100644 --- a/fedilogger/Dockerfile +++ b/fedilogger/Dockerfile @@ -1,7 +1,7 @@ FROM golang:alpine WORKDIR /app -COPY fedilogue fedilogue +COPY fedilogger fedilogger RUN ls -la ./ RUN pwd ENV DATABASE_URL "postgres://$PGUSER:$PGPASSWORD@db/$PGDATABASE" -CMD ["/app/fedilogue"] \ No newline at end of file +CMD ["/app/fedilogger"]