-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add docker-compose #105
Merged
jespino
merged 10 commits into
mattermost-community:main
from
jbutler992:docker-compose
Mar 20, 2021
+99
−3
Merged
add docker-compose #105
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
7fa9017
add docker-compose
jbutlerdev 08b2bf4
update compose for single and nginx solution
jbutlerdev f204a7f
update docker-compose and add README
d26aa73
reorder dockerfile install to alphabetize
c8f7c78
Merge pull request #1 from mattermost/main
jbutler992 9738fca
update files from main
f0a7713
update with changes to main
9d26fac
update docker-compose for dependency handling
8234d7d
Merge branch 'main' of https://github.com/mattermost/focalboard
jbutlerdev 6274472
Merge branch 'main' into docker-compose
jbutlerdev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,3 +62,5 @@ webapp/cypress/videos | |
server/swagger/clients | ||
server/vendor | ||
.idea | ||
docker/certs | ||
docker/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Deploy Focalboard with Docker | ||
|
||
## Docker | ||
|
||
The Dockerfile gives a quick and easy way to pull the latest Focalboard server and deploy it locally. | ||
|
||
``` | ||
docker build -t focalboard . | ||
docker run -it -p 80:8000 focalboard | ||
``` | ||
|
||
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 | ||
``` | ||
|
||
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"serverRoot": "http://localhost:8000", | ||
"port": 8000, | ||
"dbtype": "postgres", | ||
"dbconfig": "postgres://boardsuser:boardsuser-password@focalboard-db/boards?sslmode=disable&connect_timeout=10", | ||
"postgres_dbconfig": "dbname=boards sslmode=disable", | ||
"useSSL": false, | ||
"webpath": "./pack", | ||
"filespath": "./files", | ||
"telemetry": true, | ||
"session_expire_time": 2592000, | ||
"session_refresh_time": 18000, | ||
"localOnly": false, | ||
"enableLocalMode": true, | ||
"localModeSocketLocation": "/var/tmp/focalboard_local.socket" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: "3" | ||
services: | ||
app: | ||
build: | ||
context: ./ | ||
container_name: focalboard | ||
depends_on: | ||
- focalboard-db | ||
expose: | ||
- 8000 | ||
environment: | ||
- VIRTUAL_HOST=focalboard.local | ||
- VIRTUAL_PORT=8000 | ||
volumes: | ||
- "./config.json:/opt/focalboard/config.json" | ||
|
||
proxy: | ||
image: jwilder/nginx-proxy:latest | ||
container_name: focalboard-proxy | ||
ports: | ||
- 443:443 | ||
volumes: | ||
- "./certs:/etc/nginx/certs:ro" | ||
- "/var/run/docker.sock:/tmp/docker.sock:ro" | ||
|
||
focalboard-db: | ||
image: postgres:latest | ||
container_name: focalboard-postgres | ||
restart: always | ||
volumes: | ||
- "./data:/var/lib/postgresql/data" | ||
environment: | ||
POSTGRES_DB: boards | ||
POSTGRES_USER: boardsuser | ||
POSTGRES_PASSWORD: boardsuser-password | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: "3" | ||
services: | ||
app: | ||
build: | ||
context: ./ | ||
container_name: focalboard | ||
ports: | ||
- 80:8000 | ||
environment: | ||
- VIRTUAL_HOST=focalboard.local | ||
- VIRTUAL_PORT=8000 | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: a bit of indentation problem here.