2021-03-19 02:35:54 +02:00
# Deploy Focalboard with Docker
## Docker
2022-11-11 17:28:23 +02:00
The Dockerfile gives a quick and easy way to build the latest Focalboard server and deploy it locally. In the example below,
2022-11-10 20:28:28 +02:00
the Focalboard database and files will be persisted in a named volumed called `fbdata` .
2021-03-19 02:35:54 +02:00
2022-11-10 20:28:28 +02:00
From the Focalboard project root directory:
2021-03-19 02:35:54 +02:00
2022-11-10 20:28:28 +02:00
```bash
docker build -f docker/Dockerfile -t focalboard .
docker run -it -v "fbdata:/opt/focalboard/data" -p 80:8000 focalboard
```
2021-06-07 11:20:32 +02:00
2022-11-10 20:28:28 +02:00
Open a browser to [localhost ](http://localhost ) to start
2021-03-19 02:35:54 +02:00
2022-11-11 17:28:23 +02:00
## Alternative architectures
From the Focalboard project root directory:
```bash
docker build -f docker/Dockerfile --platform linux/arm64 -t focalboard .
docker run -it -v "fbdata:/opt/focalboard/data" -p 80:8000 focalboard
```
2021-03-19 02:35:54 +02:00
## Docker-Compose
Docker-Compose provides the option to automate the build and run step, or even include some of the steps from the [personal server setup ](https://www.focalboard.com/download/personal-edition/ubuntu/ ).
2022-11-10 20:28:28 +02:00
To start the server, change directory to `focalboard/docker` and run:
2021-03-19 02:35:54 +02:00
2022-11-10 20:28:28 +02:00
```bash
2021-03-19 02:35:54 +02:00
docker-compose up
2021-06-07 11:20:32 +02:00
```
2021-03-19 02:35:54 +02:00
2022-11-10 20:28:28 +02:00
This will automatically build the focalboard image and start it with the http port mapping. These examples also create a persistent named volume called `fbdata` .
2021-03-19 02:35:54 +02:00
2022-11-10 20:28:28 +02:00
To run Focalboard with a nginx proxy and a postgres backend, change directory to `focalboard/docker` and run:
2021-03-19 02:35:54 +02:00
2022-11-10 20:28:28 +02:00
```bash
2021-03-19 02:35:54 +02:00
docker-compose -f docker-compose-db-nginx.yml up
2021-06-07 11:20:32 +02:00
```