-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
49 lines (45 loc) · 1.36 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
version: '3'
networks:
bibbox-default-network:
external: true
services:
local-openspecimen-db:
image: mysql:8.0.26
container_name: local-openspecimen-db
restart: unless-stopped
networks:
- bibbox-default-network
environment:
- MYSQL_ROOT_PASSWORD=openspecimen
- MYSQL_DATABASE=openspecimen
- MYSQL_USER=openspecimen
- MYSQL_PASSWORD=openspecimen
volumes:
- ./data/mysql:/var/lib/mysql
- ./configs/openspecimen.cnf:/etc/mysql/conf.d/openspecimen.cnf:ro #read only
cap_add:
- SYS_NICE
local-openspecimen-web:
image: bibbox/openspecimen:9-0-RC2
container_name: local-openspecimen-web
user: tomcat
restart: unless-stopped
networks:
- bibbox-default-network
links:
- local-openspecimen-db:openspecimen-db
environment:
- DATABASE_HOST=openspecimen-db
- MYSQL_ROOT_PASSWORD=openspecimen
- MYSQL_DATABASE=openspecimen
- MYSQL_USER=openspecimen
- MYSQL_PASSWORD=openspecimen
depends_on:
- local-openspecimen-db
volumes:
- ./data/os-data:/var/lib/tomcat9/openspecimen/data
- ./data/os-plugins:/var/lib/tomcat9/openspecimen/plugins
- ./configs/openspecimen/ROOT:/var/lib/tomcat9/webapps/ROOT
- ./configs/openspecimen/scripts/entrypoint.sh:/opt/scripts/entrypoint.sh
ports:
- "9000:8080"