Skip to content
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
merged 10 commits into from
Mar 20, 2021
Merged
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,5 @@ webapp/cypress/videos
server/swagger/clients
server/vendor
.idea
certs
data
32 changes: 32 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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:
jbutler992 marked this conversation as resolved.
Show resolved Hide resolved
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

6 changes: 3 additions & 3 deletions Dockerfile → docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 && \
Expand Down