Skip to content

Commit

Permalink
add hostname to api service
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-aurele-besner committed Jan 6, 2025
1 parent f8a058c commit 188aec1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -415,21 +415,22 @@ 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}
DB_PORT: ${DB_PORT}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_DATABASE: ${DB_DATABASE}
hostname: api
volumes:
- ./indexers/api:/app
- /app/node_modules
restart: unless-stopped

0 comments on commit 188aec1

Please sign in to comment.