Updating docker files
This commit is contained in:
parent
91c206cd96
commit
72f0583eeb
@ -1,8 +1,6 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
fedilogue:
|
||||
build: fedilogue/
|
||||
build: fedilogger/
|
||||
depends_on:
|
||||
- db
|
||||
ports:
|
||||
@ -11,11 +9,14 @@ 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
|
||||
|
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user