-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
111 lines (104 loc) · 3.29 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
version: "3.8"
volumes:
code:
driver: local
driver_opts:
type: "none"
o: "bind"
device: "./scratch"
# builderdata:
# postgresdata:
# solrdata:
# tomcatdata:
services:
traefik:
container_name: im_traefik
image: traefik:v2.5
command:
- "--api.insecure=true"
- "--providers.docker"
- "--entrypoints.postgres.address=:81"
- "--entrypoints.solr.address=:82"
- "--entrypoints.tomcat.address=:83"
ports:
# Services
- "9001:81"
- "9002:82"
- "9003:83"
# Traefik dashboard
- "8002:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
whoami:
image: traefik/whoami
labels:
- "traefik.http.routers.whoami.rule=Host(`localhost`) || Host(`127.0.0.1`) || Host(`${HOST}:-0.0.0.0`)"
- "traefik.http.services.whoami.loadbalancer.server.port=80"
- "traefik.http.routers.whoami.entrypoints=whoami"
whoami2:
image: traefik/whoami
labels:
- "traefik.http.routers.whoami2.rule=Host(`localhost`) || Host(`127.0.0.1`) || Host(`${HOST}:-0.0.0.0`)"
- "traefik.http.services.whoami2.loadbalancer.server.port=80"
- "traefik.http.routers.whoami2.entrypoints=whoami2"
busybox:
image: busybox
volumes:
- code:/scratch
command: ls /scratch
# builder:
# container_name: im_builder
# build:
# context: ./intermine_builder
# image: im_builder:dev
# user: ${UID:-1000}:${GID:-1000}
# volumes:
# # - ./data/mine/data:/home/intermine/intermine/data
# - ./data/mine/dump:/home/intermine/intermine/dump
# - ./data/mine/configs:/home/intermine/intermine/configs
# - ./data/mine/packages:/home/intermine/.m2
# - ./data/mine/intermine:/home/intermine/.intermine
# # - ./data/mine/[PUT_YOUR_MINE_NAME_HERE]:/home/intermine/intermine/[PUT_YOUR_MINE_NAME_HERE]
# - ./data/mine/biotestmine:/home/intermine/intermine/biotestmine
# environment:
# - MINE_NAME=${MINE_NAME:-biotestmine}
# - MINE_REPO_URL=${MINE_REPO_URL:-}
# - IM_DATA_DIR=${IM_DATA_DIR:-DATA_DIR}
# - MEM_OPTS=${MEM_OPTS:-"-Xmx2g -Xms1g"}
# - IM_REPO_URL=${IM_REPO_URL:-}
# - IM_REPO_BRANCH=${IM_REPO_BRANCH:-}
# depends_on:
# - postgres
# - solr
# - tomcat
postgres:
container_name: im_postgres
image: postgres
user: ${UID:-1000}:${GID:-1000}
labels:
- "traefik.http.routers.postgres.rule=Host(`localhost`) || Host(`127.0.0.1`) || Host(`${HOST}:-0.0.0.0`)"
- "traefik.http.services.postgres.loadbalancer.server.port=5432"
- "traefik.http.routers.postgres.entrypoints=postgres"
volumes:
- ./data/postgres:/var/lib/postgresql/data
# 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
# 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}