Updating docker files
This commit is contained in:
parent
91c206cd96
commit
72f0583eeb
@ -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
|
||||||
|
@ -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"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user