2021-03-18 19:17:56 +01:00
|
|
|
version: "3"
|
2021-07-01 11:46:03 +02:00
|
|
|
|
2021-03-18 19:17:56 +01:00
|
|
|
services:
|
|
|
|
app:
|
|
|
|
build:
|
2021-07-01 11:46:03 +02:00
|
|
|
context: ../
|
|
|
|
dockerfile: docker/Dockerfile
|
2021-03-18 19:17:56 +01:00
|
|
|
container_name: focalboard
|
2021-03-19 16:15:20 +01:00
|
|
|
depends_on:
|
|
|
|
- focalboard-db
|
2021-06-22 10:08:16 +02:00
|
|
|
expose:
|
2021-03-18 19:17:56 +01:00
|
|
|
- 8000
|
|
|
|
environment:
|
2021-07-01 11:46:03 +02:00
|
|
|
- VIRTUAL_HOST=localhost
|
2021-03-18 19:17:56 +01:00
|
|
|
- VIRTUAL_PORT=8000
|
2021-07-01 11:46:03 +02:00
|
|
|
- VIRTUAL_PROTO=http
|
2021-03-19 01:35:54 +01:00
|
|
|
volumes:
|
|
|
|
- "./config.json:/opt/focalboard/config.json"
|
2021-07-01 11:46:03 +02:00
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
- default
|
2021-06-22 10:08:16 +02:00
|
|
|
|
2021-03-18 19:17:56 +01:00
|
|
|
proxy:
|
|
|
|
image: jwilder/nginx-proxy:latest
|
|
|
|
container_name: focalboard-proxy
|
2021-07-01 11:46:03 +02:00
|
|
|
restart: always
|
2021-03-18 19:17:56 +01:00
|
|
|
ports:
|
2021-07-01 11:46:03 +02:00
|
|
|
- 80:80
|
2021-03-18 19:17:56 +01:00
|
|
|
volumes:
|
2021-07-01 11:46:03 +02:00
|
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
|
networks:
|
|
|
|
- proxy
|
2021-03-18 19:17:56 +01:00
|
|
|
|
2021-03-19 01:35:54 +01:00
|
|
|
focalboard-db:
|
2021-03-18 19:17:56 +01:00
|
|
|
image: postgres:latest
|
|
|
|
container_name: focalboard-postgres
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- "./data:/var/lib/postgresql/data"
|
|
|
|
environment:
|
|
|
|
POSTGRES_DB: boards
|
2021-03-19 01:35:54 +01:00
|
|
|
POSTGRES_USER: boardsuser
|
|
|
|
POSTGRES_PASSWORD: boardsuser-password
|
2021-03-18 19:17:56 +01:00
|
|
|
|
2021-07-01 11:46:03 +02:00
|
|
|
networks:
|
|
|
|
proxy:
|