Updating docker files

This commit is contained in:
farhan 2025-01-22 02:19:09 +00:00
parent 91c206cd96
commit 72f0583eeb
2 changed files with 8 additions and 7 deletions

View File

@ -1,8 +1,6 @@
version: "3.9"
services: services:
fedilogue: fedilogue:
build: fedilogue/ build: fedilogger/
depends_on: depends_on:
- db - db
ports: ports:
@ -11,11 +9,14 @@ services:
build: restapi/ build: restapi/
ports: ports:
- "127.0.0.1:6431:6432" - "127.0.0.1:6431:6432"
environment:
POSTGRES_USER: $PGUSER
POSTGRES_PASSWORD: $PGPASS
POSTGRES_DB: $PGDATABASE
depends_on: depends_on:
- db - db
db: db:
image: postgres:alpine image: postgres:alpine
restart: always
environment: environment:
POSTGRES_USER: $PGUSER POSTGRES_USER: $PGUSER
POSTGRES_PASSWORD: $PGPASS POSTGRES_PASSWORD: $PGPASS

View File

@ -1,7 +1,7 @@
FROM golang:alpine FROM golang:alpine
WORKDIR /app WORKDIR /app
COPY fedilogue fedilogue COPY fedilogger fedilogger
RUN ls -la ./ RUN ls -la ./
RUN pwd RUN pwd
ENV DATABASE_URL "postgres://$PGUSER:$PGPASSWORD@db/$PGDATABASE" ENV DATABASE_URL "postgres://$PGUSER:$PGPASSWORD@db/$PGDATABASE"
CMD ["/app/fedilogue"] CMD ["/app/fedilogger"]