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