summaryrefslogtreecommitdiff
path: root/docker/raspberry-pi/README.md
blob: 63af4a03f20621d3e5d134b9d0ddd91b8bd131c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# BedrockConnect on Docker on Raspberry Pi

- Grab the `Dockerfile`
- Configure the `CMD` line in the `Dockerfile` to fit your needs
- run `docker build -t bedrock-connect .`
- run `docker run --name "bedrock-c" -d --restart always -p 19132:19132/udp bedrock-connect`

NOTE: This setup only includes the BedrockConnect instance portion, and not currently the DNS server. You can set a DNS server up with the install-bind.sh script: https://raw.githubusercontent.com/Pugmatt/BedrockConnect/master/scripts/install-bind.sh (TODO: Seperate docker image for BIND setup)

# Docker compose example
```
  bedrock-connect:
    container_name: bedrock-connect
    build:
      context: /home/pi/BedrockConnect/docker/raspberrypi
      dockerfile: ./Dockerfile
    volumes:
      - /home/pi/BedrockConnect/docker/raspberrypi/custom_servers.json:/brc/custom_servers.json
    ports:
      - 19132:19132/udp
    restart: unless-stopped
```

Replace "/home/pi/BedrockConnect/docker/raspberrypi" with the location of the Dockerfile, and custom_servers.json.