Skip to content

Instantly share code, notes, and snippets.

@mrlnc
Created June 6, 2020 11:46
Show Gist options
  • Save mrlnc/1a01d6d7d1c92e6b5b9c43d80d26f491 to your computer and use it in GitHub Desktop.
Save mrlnc/1a01d6d7d1c92e6b5b9c43d80d26f491 to your computer and use it in GitHub Desktop.
Expose AMF SCTP from free5GC docker-compose

Add the following to the free5gc-amf section in docker-compose.yaml:

    ports:
      - "38412:38412/sctp"

So that the section looks like this:

free5gc-amf:
    container_name: amf
    build:
      context: .
      dockerfile: Dockerfile
    command: ./amf -amfcfg /config/amfcfg.conf
    expose:
      - "29518"
    ports:
      - "38412:38412/sctp"
    volumes:
      - "./config:/config"
    networks:
      privnet:
        ipv4_address: 10.100.200.3
    depends_on:
      - free5gc-nrf

Common errors:

  • docker-compose must be up-to-date, since sctp support was added very recently
  • use the full port format 38412:38412/sctp -- 38412/sctp will take a random port on the host side
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment