forked from chsasank/outline-wiki-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (48 loc) · 1.15 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: "3"
services:
redis:
image: redis
restart: always
postgres:
image: postgres
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: outline
volumes:
- ./data/pgdata:/var/lib/postgresql/data
restart: always
minio:
image: minio/minio
volumes:
- ./data/minio_root:/minio_root:z
- ./data/certs:/root/.minio/certs:z
command: "minio server /minio_root"
env_file: ./env.minio
restart: always
outline:
image: outlinewiki/outline:latest
command: sh -c "yarn sequelize:migrate --env production-ssl-disabled && yarn start"
environment:
- DATABASE_URL=postgres://user:pass@postgres:5432/outline
- DATABASE_URL_TEST=postgres://user:pass@postgres:5432/outline-test
- REDIS_URL=redis://redis:6379
env_file:
- ./env.outline
- ./env.slack
restart: always
depends_on:
- postgres
- redis
- minio
nginx:
image: nginx
ports:
- 8888:80
- 4443:443
volumes:
- ./data/nginx/:/etc/nginx/conf.d/:z
- ./data/certs/:/etc/ssl/certs/:z
restart: always
depends_on:
- outline