-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlocal.docker-compose.yml
More file actions
82 lines (77 loc) · 2.24 KB
/
local.docker-compose.yml
File metadata and controls
82 lines (77 loc) · 2.24 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
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
version: "3"
services:
# Main application builder
intermine_builder:
container_name: intermine_builder
build:
context: ./intermine_builder
dockerfile: ./intermine_builder.Dockerfile
user: ${UID:-1000}:${GID:-1000}
volumes:
- ./data/mine/dump:/home/intermine/intermine/dump # Database dumps
- ./data/mine/configs:/home/intermine/intermine/configs # Configuration files
- ./data/mine/alliance:/home/intermine/intermine/alliancemine
environment:
# Core settings
- MINE_NAME=${MINE_NAME:-biotestmine}
- MINE_REPO_URL=${MINE_REPO_URL:-}
- IM_DATA_DIR=${IM_DATA_DIR:-DATA_DIR}
# Memory configuration
- MEM_OPTS=${MEM_OPTS:-"-Xmx4g -Xms1g"}
# Repository settings
- IM_REPO_URL=${IM_REPO_URL:-}
- IM_REPO_BRANCH=${IM_REPO_BRANCH:-}
depends_on:
- postgres
- solr
- tomcat
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
interval: 30s
timeout: 10s
retries: 3
postgres:
container_name: intermine_postgres
build:
context: ./postgres
dockerfile: ./postgres.Dockerfile
user: ${UID:-1000}:${GID:-1000}
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
solr:
container_name: intermine_solr
build:
context: ./solr
dockerfile: ./solr.Dockerfile
environment:
- MEM_OPTS=${MEM_OPTS:-"-Xmx2g -Xms1g"}
- MINE_NAME=${MINE_NAME:-biotestmine}
user: ${UID:-1000}:${GID:-1000}
volumes:
- ./data/solr:/var/solr
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8983/solr"]
interval: 30s
timeout: 10s
retries: 3
tomcat:
container_name: intermine_tomcat
build:
context: ./tomcat
dockerfile: ./tomcat.Dockerfile
environment:
- MEM_OPTS=${MEM_OPTS:-"-Xmx1g -Xms500m"}
ports:
- ${TOMCAT_HOST_PORT:-9999}:${TOMCAT_PORT:-8080}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
interval: 30s
timeout: 10s
retries: 3