-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo-compose.yml
117 lines (109 loc) · 2.58 KB
/
demo-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
services:
cache:
image: redis:7
restart: "unless-stopped"
read_only: true
ports:
- "6379:6379"
volumes:
- redis_data:/data
db:
image: postgres:14.13
restart: "unless-stopped"
environment:
- "POSTGRES_USER=inveniordm"
- "POSTGRES_PASSWORD=inveniordm"
- "POSTGRES_DB=inveniordm"
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
mq:
image: rabbitmq:3-management
restart: "unless-stopped"
ports:
- "15672:15672"
- "5672:5672"
volumes:
- rabbitmq_data:/var/lib/rabbitmq
search:
image: opensearchproject/opensearch:2
restart: "unless-stopped"
volumes:
- os_data:/usr/share/opensearch/data
environment:
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "DISABLE_INSTALL_DEMO_CONFIG=true"
- "DISABLE_SECURITY_PLUGIN=true"
- "discovery.type=single-node"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 2g
ports:
- "9200:9200"
- "9600:9600"
frontend:
build: ./nginx/
image: instance-frontend
depends_on:
- web-ui
- web-api
ports:
- "80:80"
- "443:443"
volumes:
- static_data:/opt/invenio/var/instance/static
web-ui:
command: ["uwsgi /opt/invenio/var/instance/uwsgi_ui.ini"]
pull_policy: always
image: ghcr.io/sharedrdm/instance:main-mug-v12
env_file: .env.temp
depends_on:
- search
- cache
- mq
volumes:
- static_data:/opt/invenio/var/instance/static
- uploaded_data:/opt/invenio/var/instance/data
- archived_data:/opt/invenio/var/instance/archive
# ports:
# - "5000:5000"
web-api:
command: ["uwsgi /opt/invenio/var/instance/uwsgi_rest.ini"]
pull_policy: always
image: ghcr.io/sharedrdm/instance:main-mug-v12
env_file: .env.temp
depends_on:
- search
- cache
- mq
volumes:
- uploaded_data:/opt/invenio/var/instance/data
- archived_data:/opt/invenio/var/instance/archive
# ports:
# - "5000:5000"
worker:
command: ["celery -A invenio_app.celery worker --beat --events --loglevel=INFO"]
image: ghcr.io/sharedrdm/instance:main-mug-v12
pull_policy: always
env_file: .env.temp
depends_on:
- search
- cache
- mq
volumes:
- uploaded_data:/opt/invenio/var/instance/data
volumes:
redis_data:
postgres_data:
rabbitmq_data:
static_data:
uploaded_data:
os_data:
archived_data: