1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-24 13:43:12 +02:00
focalboard/docker/docker-compose-db-nginx.yml
Doug Lauder 9f344382ce
GH-3541 docker data permissions & cleanup (#4148)
* fix markdown linter errors

* use named volumes; fix data paths
2022-11-10 13:28:28 -05:00

54 lines
1006 B
YAML

version: "3"
services:
app:
build:
context: ../
dockerfile: docker/Dockerfile
container_name: focalboard
depends_on:
- focalboard-db
expose:
- 8000
environment:
- VIRTUAL_HOST=localhost
- VIRTUAL_PORT=8000
- VIRTUAL_PROTO=http
volumes:
- "./config.json:/opt/focalboard/config.json"
- fbdata:/opt/focalboard/data
restart: always
networks:
- proxy
- default
proxy:
image: jwilder/nginx-proxy:latest
container_name: focalboard-proxy
restart: always
ports:
- 80:80
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- proxy
focalboard-db:
image: postgres:latest
container_name: focalboard-postgres
restart: always
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_DB: boards
POSTGRES_USER: boardsuser
POSTGRES_PASSWORD: boardsuser-password
volumes:
fbdata:
pgdata:
networks:
proxy: