mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-08 15:06:08 +02:00
update compose for single and nginx solution
This commit is contained in:
parent
7fa9017d25
commit
08b2bf4bf3
32
docker-compose-db-nginx.yml
Normal file
32
docker-compose-db-nginx.yml
Normal file
@ -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:
|
||||
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
|
||||
|
@ -4,29 +4,9 @@ services:
|
||||
build:
|
||||
context: ./docker
|
||||
container_name: focalboard
|
||||
expose:
|
||||
- 8000
|
||||
ports:
|
||||
- 80:8000
|
||||
environment:
|
||||
- VIRTUAL_HOST=focalboard.local
|
||||
- VIRTUAL_PORT=8000
|
||||
|
||||
proxy:
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user