-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
96 lines (95 loc) · 2.35 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
services:
server:
container_name: csx_server
image: csxi_server
build:
context: ./
dockerfile: docker/Dockerfile.server
volumes:
- ./server:/cs
ports:
- 8881:80
- 5678:5678 # for debugging
environment:
DISABLE_UPLOAD: "false"
SEARCH_SOURCE: "mongo"
ELASTIC_PASSWORD: "elasticroot"
MONGO_PASSWORD: "mongoroot"
MONGO_USERNAME: "mongoroot"
SHOW_DOCS: "true"
SHOW_EXTERNAL_SOURCES: "true"
OPENALEX_EMAIL: ""
command:
["python", "-m", "debugpy", "--listen", "0.0.0.0:5678", "app/main.py"]
app:
container_name: csx_app
image: csxi_app
build:
context: ./
dockerfile: docker/Dockerfile.app
ports:
- 8882:3000
volumes:
- ./app:/home/node/csx
depends_on:
- server
# - analytics
environment:
NODE_ENV: development
WDS_SOCKET_PORT: 0
command: bash -c "npm install && npm start"
mysql:
image: "mysql:5.7"
profiles:
- "analytics"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: analytics
command: --max_allowed_packet=128000000 #Bytes
ports:
- "3316:3306"
volumes:
- ./mysql:/var/lib/mysql
container_name: csx_analytics_db
analytics:
image: matomo:4.13.0
profiles:
- "analytics"
container_name: csx_analytics
volumes:
- ./analytics:/var/www/html
environment:
MATOMO_DATABASE_HOST: csx_analytics_db
MATOMO_DATABASE_USERNAME: root
MATOMO_DATABASE_PASSWORD: root
MATOMO_DATABASE_DBNAME: analytics
ports:
- 8883:80
links: [mysql]
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.2
profiles:
- "elastic"
environment:
- discovery.type=single-node
- ELASTIC_PASSWORD=elasticroot
- xpack.security.enabled=true
ports:
- "9200:9200"
- "9300:9300"
volumes:
- ./elasticsearch:/usr/share/elasticsearch/data
container_name: csx_elastic
mongo:
image: mongo:4
ports:
- 27017:27017
volumes:
- ./mongo:/data/db
container_name: csx_mongo
environment:
MONGO_INITDB_ROOT_USERNAME: mongoroot
MONGO_INITDB_ROOT_PASSWORD: mongoroot
volumes:
mongo-volume:
external: false