1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-11-24 08:22:29 +02:00
focalboard/docker
Doug Lauder 9f344382ce
GH-3541 docker data permissions & cleanup (#4148)
* fix markdown linter errors

* use named volumes; fix data paths
2022-11-10 13:28:28 -05:00
..
config.json GH-3541 docker data permissions & cleanup (#4148) 2022-11-10 13:28:28 -05:00
docker-compose-db-nginx.yml GH-3541 docker data permissions & cleanup (#4148) 2022-11-10 13:28:28 -05:00
docker-compose.yml GH-3541 docker data permissions & cleanup (#4148) 2022-11-10 13:28:28 -05:00
Dockerfile GH-3541 docker data permissions & cleanup (#4148) 2022-11-10 13:28:28 -05:00
README.md GH-3541 docker data permissions & cleanup (#4148) 2022-11-10 13:28:28 -05:00
server_config.json GH-3541 docker data permissions & cleanup (#4148) 2022-11-10 13:28:28 -05:00

Deploy Focalboard with Docker

Docker

The Dockerfile gives a quick and easy way to pull the latest Focalboard server and deploy it locally. In the example below, the Focalboard database and files will be persisted in a named volumed called fbdata.

From the Focalboard project root directory:

docker build -f docker/Dockerfile -t focalboard .
docker run -it -v "fbdata:/opt/focalboard/data" -p 80:8000 focalboard

Open a browser to 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.

To start the server, change directory to focalboard/docker and run:

docker-compose up

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.

To run Focalboard with a nginx proxy and a postgres backend, change directory to focalboard/docker and run:

docker-compose -f docker-compose-db-nginx.yml up