forked from IngaKe/SCoT
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
executable file
·70 lines (66 loc) · 1.95 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
version: "2.1"
networks:
scott-net:
services:
app:
#build: ./src_vue
image: uhhlt/scott
volumes:
- ./src_vue/config:/app/config
- ./src_vue/persistence:/app/persistence
- ./src_vue/services:/app/services
- ./src_vue/model:/app/model
- ./src_vue/static:/app/static
# depends_on:
# - elasticsearch_780
links:
- db
ports:
- "10020:80"
networks:
scott-net:
db:
image: mariadb:10.5.4
container_name: mariadb_1054
volumes:
# database - this can be combined with environment [implicit start-up scrip1] to source one db [useful for very large dumps as here]
- ${PWD}/db/dump.sql:/docker-entrypoint-initdb.d/dump.sql
# Permanent volume not needed - as the data does not change
- ${PWD}/db/dev_data:/var/lib/mysql
# SECOND START-UP SCRIPT VIA scripts in entrypoint folder
# all scripts in this folder are copied somewhere - thus do NOT reference other files in them - use USE db; - execution lexically
#- ${PWD}/db/init/init_dev:/docker-entrypoint-initdb.d
# environment works as a first start-up script and executes mysql commands on the docker image
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: scot
MYSQL_USER: user
MYSQL_PASSWORD: password
networks:
scott-net:
elasticsearch:
image: elasticsearch:8.6.0
container_name: scot_elasticsearch_860
environment:
- xpack.security.enabled=false
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms16g -Xmx16g"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
ports:
- 9292:9200
- 9393:9300
networks:
scott-net:
# volumes:
# elasticsearch_data:
# driver: local