Skip to content
Discussion options

You must be logged in to vote

Classic rubber duck posting, but in case someone else is searching:

The issue I had was that I was adding network: host to the service, but not build. So while this didn't work:

services:
  web:
    # network listed on service:web
    network: host
    depends_on:
      db:
        condition: service_healthy
      redis:
        condition: service_healthy
    build:
      context: .
      dockerfile: ./packages/web/Dockerfile
    volumes:
      - .:/app
    ports:
      - 3000:3000
      - 5432:5432
      - 6379:6379

This did:

services:
  web:
    depends_on:
      db:
        condition: service_healthy
      redis:
        condition: service_healthy
    build:
      context: .
      # ne…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by orbiteleven
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Nithur-M
Comment options

@Nithur-M
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants