1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-12 09:04:14 +02:00
focalboard/docker/docker-compose-db-nginx.yml

48 lines
941 B
YAML
Raw Normal View History

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
2021-03-19 02:35:54 +02:00
volumes:
- "./config.json:/opt/focalboard/config.json"
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
2021-03-19 02:35:54 +02:00
focalboard-db:
image: postgres:latest
container_name: focalboard-postgres
restart: always
volumes:
- "./data:/var/lib/postgresql/data"
environment:
POSTGRES_DB: boards
2021-03-19 02:35:54 +02:00
POSTGRES_USER: boardsuser
POSTGRES_PASSWORD: boardsuser-password
networks:
proxy: