-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (43 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
45 lines (43 loc) · 1.12 KB
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
services:
mariadb:
image: mariadb:10.11
platform: linux/amd64
container_name: pips-mariadb
environment:
MARIADB_ROOT_PASSWORD: rootpassword
MARIADB_DATABASE: nucleolar
MARIADB_USER: pips
MARIADB_PASSWORD: pipspassword
volumes:
- mariadb-data:/var/lib/mysql
- ./mariadb/nucleolar:/docker-entrypoint-initdb.d:ro
ports:
- "3306:3306"
healthcheck:
test: ["CMD-SHELL", "mariadb-admin ping -h localhost -u root -prootpassword || exit 1"]
interval: 10s
timeout: 5s
retries: 5
webapp:
build: .
platform: linux/amd64
container_name: pips-webapp
ports:
- "8080:8080"
depends_on:
mariadb:
condition: service_healthy
environment:
# Database connection
- DB_HOST=mariadb
- DB_PORT=3306
- DB_NAME=nucleolar
- DB_USER=pips
- DB_PASSWORD=pipspassword
# BLAST search paths
- BLAST_SCRIPT_PATH=/opt/pips/bin/run_blast_simple.pl
- BLAST_DB_PATH=/opt/pips/database/prot_human
- BLAST_QUERY_DIR=/opt/pips/query
volumes:
mariadb-data:
name: pips-mariadb-data