-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
166 lines (155 loc) · 4.87 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
version: '3'
services:
nginx:
image: nginx:alpine
ports:
- '80:80'
- '443:443'
volumes:
- ./nginx/html:/etc/nginx/html:ro
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/users:/etc/nginx/users:ro
- ./nginx/secrets:/etc/nginx/secrets:ro
- kumanodocs_hanami_static:/var/kumanodocs-hanami:ro
- ./kumanodocs-hanami/public/sw.js:/var/kumanodocs-hanami/sw.js:ro
- kumanodocs_hanami_sock:/tmp/sockets
links:
- kumanodocs-hanami
- menu
- bukai-issue-creator
- growi
- ryosai
depends_on:
- kumanodocs-hanami
- memo
- menu
- bukai-issue-creator
- growi
- ryosai
environment:
- TZ=`ls -la /etc/localtime | cut -d/ -f8-9`
kumanodocs-hanami:
build: kumanodocs-hanami
expose:
- "2300"
volumes:
- ./kumanodocs-hanami:/app
- kumanodocs_hanami_static:/app/public
- kumanodocs_hanami_sock:/tmp
- /etc/localtime:/etc/localtime
depends_on:
- kumanodocs_postgres
env_file:
- ./kumanodocs-hanami/.env
kumanodocs_postgres:
image: postgres:11.3-alpine
volumes:
- postgres_database:/var/lib/postgresql/data
- kumanodocs_hanami_sock:/var/run/postgresql
env_file:
- ./kumanodocs-hanami/.env.pg
networks:
backend:
aliases:
- postgresdb
memo:
build:
context: .
dockerfile: hedgedoc/Dockerfile
args:
- "VERSION=master"
- "HEDGEDOC_REPOSITORY=https://github.com/hedgedoc/hedgedoc.git"
environment:
- CMD_DB_URL=postgres://kd:kd@postgresdb:5432/hedgedoc
- TZ=`ls -la /etc/localtime | cut -d/ -f8-9`
expose:
- "3000"
networks:
backend:
volumes:
- memo_uploads:/hedgedoc/public/uploads
- kumanodocs_hanami_sock:/tmp
restart: always
depends_on:
- kumanodocs_postgres
menu:
build: menu-sinatra
expose:
- "4567"
volumes:
- menu_database:/var/db
environment:
- TZ=`ls -la /etc/localtime | cut -d/ -f8-9`
bukai-issue-creator:
build: ./bukai-issue-creator
expose:
- "2000"
env_file:
- ./bukai-issue-creator/.env
growi:
build:
context: ./growi
dockerfile: ./Dockerfile
expose:
- "3000"
links:
- mongo:mongo
depends_on:
- mongo
environment:
- MONGO_URI=mongodb://mongo:27017/growi
- PASSWORD_SEED=i52PBLrUgY8ak9wyT
- FILE_UPLOAD=local # activate this line if you use local storage of server rather than AWS
# - MATHJAX=1 # activate this line if you want to use MathJax
# - PLANTUML_URI=http:// # activate this line and specify if you use your own PlantUML server rather than public plantuml.com
# - HACKMD_URI=http:// # activate this line and specify HackMD server URI which can be accessed from GROWI client browsers
# - HACKMD_URI_FOR_SERVER=http://hackmd:3000 # activate this line and specify HackMD server URI which can be accessed from this server container
# - FORCE_WIKI_MODE='public' # activate this line to force wiki public mode
# - FORCE_WIKI_MODE='private' # activate this line to force wiki private mode
command: "dockerize
-wait tcp://mongo:27017
-timeout 60s
npm run server:prod"
restart: unless-stopped
volumes:
- growi_data:/data
mongo:
image: mongo:4.4
expose:
- "27017"
restart: unless-stopped
volumes:
- mongo_configdb:/data/configdb
- mongo_db:/data/db
ryosai:
build: ./ryosai2021
expose:
- "8000"
volumes:
- ./ryosai2021:/app
- kumanodocs_hanami_sock:/tmp
depends_on:
- kumanodocs_postgres
backup:
build: ./backup
volumes:
- ./backup:/app
- kumanodocs_hanami_sock:/tmp
- menu_database:/bar/db/menu:ro
- backup_tmp:/var/backup
environment:
- TZ=`ls -la /etc/localtime | cut -d/ -f8-9`
networks:
backend:
volumes:
postgres_database:
kumanodocs_hanami_static:
kumanodocs_hanami_sock:
kumanodocs_database:
memo_uploads:
menu_database:
growi_data:
mongo_configdb:
mongo_db:
es_data:
backup_tmp: