akafeng / docker-bird

🐳 Docker Image Packaging for BIRD
https://ghcr.io/akafeng/bird
Apache License 2.0
8 stars 2 forks source link

docker-compose.yml #1

Open TerAnYu opened 5 months ago

TerAnYu commented 5 months ago

docker-compose.yml

version: '3'
services:
  bird2:
    image: ghcr.io/akafeng/bird:latest
    container_name: bird2
    hostname: "bird2"
    restart: always
#    volumes:
#      - ./etc:/etc/bird
    ports:  
      - 179:179/tcp  # tcp bgp
    cap_add:
      - NET_ADMIN
      - NET_BROADCAST
      - NET_RAW

Thanks for your image and Dockerfile !

It's a pity that if you do

    volumes:
      - ./etc:/etc/bird

then the container cannot start because the bird.conf file is missing, which itself is not created :(

akafeng commented 3 weeks ago

I apologize for the late response. Do you think implementing a default configuration file would be a good approach?

TerAnYu commented 3 weeks ago

Hello! Thanks for your reply. Yes, I think you should create the file if it doesn't exist. Some other services that run in docker do that.