From f3bbf9a1afd2ed951cd6e525f703e05acfad4449 Mon Sep 17 00:00:00 2001 From: Farhan Khan Date: Tue, 28 Jan 2025 05:03:10 +0000 Subject: [PATCH] Dockerfile variables update --- docker-compose.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 2e95952..68cd40c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,30 +2,31 @@ services: fedilogue: build: fedilogue/ environment: - POSTGRES_USER: $POSTGRES_USER - POSTGRES_PASSWORD: $POSTGRES_PASSWORD - POSTGRES_HOSTNAME: $POSTGRES_HOSTNAME - POSTGRES_DB: $POSTGRES_DB + POSTGRES_USER: fedilogue + POSTGRES_PASSWORD: someverylongpassphrasehere + POSTGRES_HOSTNAME: db + POSTGRES_DB: fedilogue depends_on: - db ports: - - "127.0.0.1:5555:5555" + - "5555:5555" restapi: build: restapi/ ports: - - "127.0.0.1:6431:6432" + - "6432:6432" environment: - POSTGRES_USER: $POSTGRES_USER - POSTGRES_PASSWORD: $POSTGRES_PASSWORD - POSTGRES_HOSTNAME: $POSTGRES_HOSTNAME - POSTGRES_DB: $POSTGRES_DB + POSTGRES_USER: fedilogue + POSTGRES_PASSWORD: someverylongpassphrasehere + POSTGRES_HOSTNAME: db + POSTGRES_DB: fedilogue depends_on: - db db: - image: postgres:alpine + image: postgres environment: - POSTGRES_USER: $POSTGRES_USER - POSTGRES_PASSWORD: $POSTGRES_PASSWORD - POSTGRES_DB: $POSTGRES_DB + POSTGRES_USER: fedilogue + POSTGRES_PASSWORD: someverylongpassphrasehere + POSTGRES_DB: fedilogue volumes: - ./postgres-data:/var/lib/postgresql + - ./fedilogue/tables.sql:/docker-entrypoint-initdb.d/tables.sql