forked from TaiBIF/portal20
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (50 loc) · 1.32 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
version: '3.7'
services:
web:
build: .
container_name: taibif-web-dev-container
image: taibif-web-dev-image
ports:
- 8000:8000
depends_on:
- db
links:
- db:db
volumes:
- .:/taibif-code
- ../taibif-volumes/bucket:/taibif-volumes/bucket
- ../taibif-volumes/media:/taibif-volumes/media
- ../taibif-volumes/biomap:/biomap
command: "./scripts/wait-for-it.sh db:5432 -t 5 -- ./scripts/docker-web-dev-entry.sh"
#command: "./scripts/wait-for-it.sh db:5432 -t 5 -- ./scripts/docker-web-entry.sh"
restart: always
env_file:
- .env
db:
build: ./postgres
container_name: taibif-db-container
image: postgres:12-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=example
- POSTGRES_DB=taibif
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ../taibif-volumes/pgdata:/var/lib/postgresql/data/pgdata
- ../taibif-volumes/bucket:/taibif-volumes/bucket
redis:
image: redis:5-alpine
restart: always
solr:
build: ./solr-workspace
image: solr:8.11.1
container_name: taibif-solr
ports:
- "8983:8983"
volumes:
- ../taibif-volumes/solr:/var/solr
- ./solr-workspace/:/workspace
command:
- solr-precreate
- gettingstarted