1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-03-26 20:53:55 +02:00

add docker-compose

This commit is contained in:
Jeremiah Butler 2021-03-18 15:53:38 +00:00
parent 1ed5659bc7
commit 7fa9017d25
3 changed files with 37 additions and 3 deletions

2
.gitignore vendored
View File

@ -62,3 +62,5 @@ webapp/cypress/videos
server/swagger/clients
server/vendor
.idea
certs
data

32
docker-compose.yml Normal file
View File

@ -0,0 +1,32 @@
version: "3"
services:
app:
build:
context: ./docker
container_name: focalboard
expose:
- 8000
environment:
- VIRTUAL_HOST=focalboard.local
- VIRTUAL_PORT=8000
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"
postgres:
image: postgres:latest
container_name: focalboard-postgres
restart: always
volumes:
- "./data:/var/lib/postgresql/data"
environment:
POSTGRES_DB: boards
POSTGRES_USER: boarduser
POSTGRES_PASSWORD: board-password

View File

@ -1,8 +1,8 @@
FROM ubuntu:latest
FROM ubuntu:20.04
# Make sure that the underlying container is patched to the latest versions
RUN apt update && \
apt install -y wget tar gzip unzip file
RUN apt-get update && \
apt-get install -y wget tar unzip gzip file
# Now install Focalboard as a seperate layer
RUN wget https://releases.mattermost.com/focalboard/0.5.0/focalboard-server-linux-amd64.tar.gz && \