2021-03-19 02:35:54 +02:00
# Deploy Focalboard with Docker
## Docker
The Dockerfile gives a quick and easy way to pull the latest Focalboard server and deploy it locally.
2022-01-31 13:22:02 +02:00
Please note that if you wish to have persistence and mount a volume for the `/data` directory, the host directory must be owned by user `nobody` .
2021-03-19 02:35:54 +02:00
```
2022-01-31 13:22:02 +02:00
sudo chown -R nobody /home/user/focalboard-data
2021-03-19 02:35:54 +02:00
docker build -t focalboard .
2021-06-07 11:20:32 +02:00
docker run -it -v "/home/user/focalboard-data:/data" -p 80:8000 focalboard
2021-03-19 02:35:54 +02:00
```
2021-06-07 11:20:32 +02:00
> The `-v` flag can be used to store Focalboard's database and uploaded files in a directory on the Docker host
2021-03-19 02:35:54 +02:00
Open a browser to http://localhost to start
## 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/ ).
To start the server run
```
docker-compose up
2021-06-07 11:20:32 +02:00
```
2021-03-19 02:35:54 +02:00
This will automatically build the focalboard image and start it with the http port mapping.
To run focalboard with a nginx proxy and a postgres backend run
```
docker-compose -f docker-compose-db-nginx.yml up
2021-06-07 11:20:32 +02:00
```