Dockerfile variables update

This commit is contained in:
farhan 2025-01-28 05:03:10 +00:00
parent 6c8542414f
commit 411ef3a8eb

View File

@ -2,30 +2,31 @@ services:
fedilogue: fedilogue:
build: fedilogue/ build: fedilogue/
environment: environment:
POSTGRES_USER: $POSTGRES_USER POSTGRES_USER: fedilogue
POSTGRES_PASSWORD: $POSTGRES_PASSWORD POSTGRES_PASSWORD: someverylongpassphrasehere
POSTGRES_HOSTNAME: $POSTGRES_HOSTNAME POSTGRES_HOSTNAME: db
POSTGRES_DB: $POSTGRES_DB POSTGRES_DB: fedilogue
depends_on: depends_on:
- db - db
ports: ports:
- "127.0.0.1:5555:5555" - "5555:5555"
restapi: restapi:
build: restapi/ build: restapi/
ports: ports:
- "127.0.0.1:6431:6432" - "6432:6432"
environment: environment:
POSTGRES_USER: $POSTGRES_USER POSTGRES_USER: fedilogue
POSTGRES_PASSWORD: $POSTGRES_PASSWORD POSTGRES_PASSWORD: someverylongpassphrasehere
POSTGRES_HOSTNAME: $POSTGRES_HOSTNAME POSTGRES_HOSTNAME: db
POSTGRES_DB: $POSTGRES_DB POSTGRES_DB: fedilogue
depends_on: depends_on:
- db - db
db: db:
image: postgres:alpine image: postgres
environment: environment:
POSTGRES_USER: $POSTGRES_USER POSTGRES_USER: fedilogue
POSTGRES_PASSWORD: $POSTGRES_PASSWORD POSTGRES_PASSWORD: someverylongpassphrasehere
POSTGRES_DB: $POSTGRES_DB POSTGRES_DB: fedilogue
volumes: volumes:
- ./postgres-data:/var/lib/postgresql - ./postgres-data:/var/lib/postgresql
- ./fedilogue/tables.sql:/docker-entrypoint-initdb.d/tables.sql