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:
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
- ./postgres-data:/var/lib/postgresql

View File

@ -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"]
CMD ["/app/fedilogger"]