-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
49 lines (44 loc) · 1.19 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:
build:
context: .
dockerfile: Dockerfile
container_name: local-openspecimen-web
restart: unless-stopped
networks:
- bibbox-default-network
links:
- "local-openspecimen-db:openspecimen-db"
environment:
- DATABASE_HOST=openspecimen-db
- DATABASE_PORT=3306
- MYSQL_ROOT_PASSWORD=openspecimen
- MYSQL_DATABASE=openspecimen
- MYSQL_USER=openspecimen
- MYSQL_PASSWORD=openspecimen
depends_on:
- local-openspecimen-db
volumes:
- ./data/openspecimen:/var/lib/openspecimen
ports:
- "9000:8080"