-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
69 lines (69 loc) · 2.1 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
version: '3'
services:
db-zotero-mysql:
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=zotero
volumes:
- "./config/mysql/conf.d:/etc/mysql/conf.d"
db-zotero-elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.3.0
environment:
- cluster.name=zotero
- xpack.security.enabled=false
db-zotero-redis:
image: redis:5.0
db-zotero-memcached:
image: memcached:1.5
db-zotero-localstack:
image: atlassianlabs/localstack
environment:
- SERVICES=sns,sqs,apigateway
db-zotero-minio:
image: minio/minio
environment:
- MINIO_ACCESS_KEY=zotero
- MINIO_SECRET_KEY=zoterodocker
command: server /data
app-zotero:
image: app-zotero
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:80"
- "8081:81"
- "8082:8082"
volumes:
- "./config/config.inc.php:/var/www/zotero/include/config/config.inc.php:ro"
- "./config/dbconnect.inc.php:/var/www/zotero/include/config/dbconnect.inc.php:ro"
- "./config/default.js:/var/www/stream-server/config/default.js:ro"
- "./config/dataserver-scripts/create-user.sh:/var/www/zotero/admin/create-user.sh:ro"
- "./config/dataserver-scripts/list-user.sh:/var/www/zotero/admin/list-user.sh:ro"
- "./config/dataserver-scripts/www.sql:/var/www/zotero/misc/www.sql:ro"
- "./config/dataserver-scripts/init-mysql.sh:/var/www/zotero/misc/init-mysql.sh:ro"
environment:
- RUN_USER=www-data
- RUN_GROUP=www-data
depends_on:
- db-zotero-mysql
- db-zotero-elasticsearch
- db-zotero-redis
- db-zotero-memcached
links:
- db-zotero-mysql:mysql
- db-zotero-elasticsearch:elasticsearch
- db-zotero-redis:redis
- db-zotero-memcached:memcached
- db-zotero-localstack:localstack
- db-zotero-minio:minio
restart: always
app-zotero-phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "8083:80"
environment:
- PMA_HOST=mysql
links:
- db-zotero-mysql:mysql