-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.prod.yml
96 lines (95 loc) · 2.47 KB
/
docker-compose.prod.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: csxp_server
image: csxpi_server
restart: unless-stopped
build:
context: ./
dockerfile: docker/Dockerfile.server
ports:
- 8881:80
volumes:
- ./server:/cs
environment:
DISABLE_UPLOAD: "false"
SEARCH_SOURCE: "mongo"
ELASTIC_PASSWORD: ${ELASTIC_PASS}
MONGO_USERNAME: ${MONGO_USER}
MONGO_PASSWORD: ${MONGO_PASS}
SHOW_DOCS: "false"
SHOW_EXTERNAL_SOURCES: "true"
OPENALEX_EMAIL: ""
depends_on:
- elastic
command: uvicorn app.main:app --proxy-headers --host 0.0.0.0 --port 80 --limit-max-headers 8192
app:
container_name: csxp_app
image: csxpi_app
restart: unless-stopped
build:
context: ./
dockerfile: docker/Dockerfile.prod.app
ports:
- 8882:8880
depends_on:
- server
- elastic
environment:
NODE_ENV: production
WDS_SOCKET_PORT: 0
mysql:
image: "mysql:5.7"
profiles:
- "analytics"
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${MATOMO_PASS}
MYSQL_DATABASE: analytics
command: --max_allowed_packet=128000000 #Bytes
volumes:
- ./mysql:/var/lib/mysql
container_name: csxp_analytics_db
analytics:
image: matomo:latest
profiles:
- "analytics"
container_name: csxp_analytics
restart: unless-stopped
volumes:
- ./analytics:/var/www/html
environment:
MATOMO_DATABASE_HOST: csxp_analytics_db
MATOMO_DATABASE_USERNAME: root
MATOMO_DATABASE_PASSWORD: ${MATOMO_PASS}
MATOMO_DATABASE_DBNAME: analytics
ports:
- 8883:80
links: [mysql]
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.1
profiles:
- "elastic"
environment:
- discovery.type=single-node
- ELASTIC_PASSWORD=${ELASTIC_PASS}
- xpack.security.enabled=true
ports:
- "9200:9200"
- "9300:9300"
volumes:
# - ./elasticsearch:/var/lib/elasticsearch/data
- ./elasticsearch:/usr/share/elasticsearch/data
restart: unless-stopped
container_name: csx_elastic
mongo:
image: mongo:4
volumes:
- ./mongo:/data/db
restart: unless-stopped
container_name: csx_mongo
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASS}
volumes:
mongo-volume:
external: false