This repository has been archived by the owner on Nov 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
93 lines (90 loc) · 2.93 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
version: "2"
volumes:
ui-modules:
api-modules:
search:
services:
ui:
image: node:14-buster
hostname: ui
tty: true
environment:
TERM: "xterm-256color"
NODE_ENV: "development"
volumes:
- $PWD/ui:/srv/ui:cached
- $PWD/../data/ocfl-repository/repository:/srv/ui/dist/repository:cached
- ui-modules:/srv/ui/node_modules:delegated
working_dir: /srv/ui
command: ["npm", "run", "develop"]
ports:
- 9001:9001
search:
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.2
hostname: search
environment:
- node.name=search
- discovery.seed_hosts=search
- bootstrap.memory_lock=true
- http.host=0.0.0.0
- "ES_JAVA_OPTS=-Xms4096m -Xmx4096m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- search:/usr/share/elasticsearch/data:delegated
- $PWD/elastic/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- $PWD/elastic/roles.yml:/usr/share/elasticsearch/config/roles.yml
- $PWD/elastic/users:/usr/share/elasticsearch/config/users
- $PWD/elastic/users_roles:/usr/share/elasticsearch/config/users_roles
ports:
- 9200:9200
# db:
# image: postgres:11-alpine
# hostname: db
# tty: true
# environment:
# TERM: "xterm-256color"
# NODE_ENV: "development"
# POSTGRES_PASSWORD: "modpdsc"
# POSTGRES_USER: "modpdsc"
# POSTGRES_DB: "modpdsc"
# PGDATA: /postgresql/data
# mem_limit: 64M
# ports:
# - 5432:5432
# api:
# image: node:12-stretch
# hostname: api
# tty: true
# environment: &environment
# TERM: "xterm-256color"
# NODE_ENV: "development"
# DEBUG: "modpdsc:*"
# LANG: "C.UTF-8"
# MODPDSC_DB_HOST: "db"
# MODPDSC_DB_PORT: "5432"
# MODPDSC_DB_USER: "modpdsc"
# MODPDSC_DB_PASSWORD: "modpdsc"
# MODPDSC_DB_DATABASE: "modpdsc"
# MODPDSC_JWT_SECRET: "xxxx"
# MODPDSC_JWT_EXPIRY: 86400
# MODPDSC_PASSWORD_SALT: "xxxx"
# MODPDSC_PASSWORD_ITERATIONS: "10"
# MODPDSC_SUPER_ADMIN_PASSWORD: "1234"
# MODPDSC_SEARCH: "search:9200"
# mem_limit: 512M
# volumes:
# - $PWD/api:/srv/api:delegated
# - $PWD/ocfl-repository:/srv/api/repository:delegated
# - api-modules:/srv/api/node_modules:delegated
# working_dir: /srv/api
# command: ["./start-api"]
# ports:
# - 8080:8080