You've already forked focalboard
							
							
				mirror of
				https://github.com/mattermost/focalboard.git
				synced 2025-10-31 00:17:42 +02:00 
			
		
		
		
	update docker-compose and add README
This commit is contained in:
		
							
								
								
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -62,5 +62,5 @@ webapp/cypress/videos | ||||
| server/swagger/clients | ||||
| server/vendor | ||||
| .idea | ||||
| certs | ||||
| data | ||||
| docker/certs | ||||
| docker/data | ||||
|   | ||||
							
								
								
									
										30
									
								
								docker/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								docker/README.md
									
									
									
									
									
										Normal file
									
								
							| @@ -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 | ||||
| ```  | ||||
							
								
								
									
										16
									
								
								docker/config.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								docker/config.json
									
									
									
									
									
										Normal file
									
								
							| @@ -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" | ||||
| } | ||||
| @@ -2,13 +2,15 @@ version: "3" | ||||
| services: | ||||
|   app: | ||||
|     build: | ||||
|       context: ./docker | ||||
|       context: ./ | ||||
|     container_name: focalboard | ||||
|     expose:  | ||||
|       - 8000 | ||||
|     environment: | ||||
|       - VIRTUAL_HOST=focalboard.local | ||||
|       - VIRTUAL_PORT=8000 | ||||
|     volumes: | ||||
|       - "./config.json:/opt/focalboard/config.json" | ||||
|    | ||||
|   proxy: | ||||
|     image: jwilder/nginx-proxy:latest | ||||
| @@ -19,7 +21,7 @@ services: | ||||
|       - "./certs:/etc/nginx/certs:ro" | ||||
|       - "/var/run/docker.sock:/tmp/docker.sock:ro" | ||||
| 
 | ||||
|   postgres: | ||||
|   focalboard-db: | ||||
|     image: postgres:latest | ||||
|     container_name: focalboard-postgres | ||||
|     restart: always | ||||
| @@ -27,6 +29,6 @@ services: | ||||
|       - "./data:/var/lib/postgresql/data" | ||||
|     environment: | ||||
|       POSTGRES_DB: boards | ||||
|       POSTGRES_USER: boarduser | ||||
|       POSTGRES_PASSWORD: board-password | ||||
|       POSTGRES_USER: boardsuser | ||||
|       POSTGRES_PASSWORD: boardsuser-password | ||||
| 
 | ||||
		Reference in New Issue
	
	Block a user