forked from chsasank/outline-wiki-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (59 loc) · 1.43 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
49
50
51
52
53
54
55
56
57
58
59
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
fake3:
image: lphoward/fake-s3
volumes:
- ./data/fakes3:/fakes3_root
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:
# TODO: remove hardcoded version
image: outlinewiki/outline:version-0.45.0
environment:
- DATABASE_URL=postgres://user:pass@postgres:5432/outline
- DATABASE_URL_TEST=postgres://user:pass@postgres:5432/outline-test
- REDIS_URL=redis://redis:6379
command: sh -c "if [ -f secondtime ];then yarn dev; else yarn install --pure-lockfile && yarn sequelize db:migrate && echo "aa">secondtime && yarn dev;fi"
env_file:
- ./env.outline
- ./env.google
restart: always
depends_on:
- postgres
- redis
- minio
nginx:
image: nginx
volumes:
- ./data/nginx/:/etc/nginx/conf.d/:z
- ./data/certs/:/etc/ssl/certs/:z
networks:
- frontend
- default
restart: always
depends_on:
- outline
networks:
frontend:
external:
name: vhosts
default: