From 188aec1114b341e65b31b386c38100ee7736f0e3 Mon Sep 17 00:00:00 2001 From: Marc-Aurele Besner <82244926+marc-aurele-besner@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:40:10 -0500 Subject: [PATCH] add hostname to api service --- docker-compose.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 17d5cf3c..569dc098 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -415,13 +415,14 @@ services: build: context: ./indexers/api dockerfile: Dockerfile - ports: - - "${API_PORT}:3000" depends_on: postgres: condition: service_healthy hasura: condition: service_started + restart: unless-stopped + ports: + - "${API_PORT}:3000" environment: NODE_ENV: ${NODE_ENV} DB_HOST: ${DB_HOST} @@ -429,7 +430,7 @@ services: DB_USER: ${DB_USER} DB_PASSWORD: ${DB_PASSWORD} DB_DATABASE: ${DB_DATABASE} + hostname: api volumes: - ./indexers/api:/app - /app/node_modules - restart: unless-stopped