-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (59 loc) · 1.42 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
version: '3.3'
services:
shiny:
container_name: pheno-ranker-shiny
# image: phenorankerui:${DOCKER_IMG_TAG}
# image: phenorankerui:latest
image: leistivo/pheno-ranker-ui:${DOCKER_IMG_TAG}
# build:
# context: phenoRankeR/deploy
# args:
# - IGNORE_CACHE_FROM_HERE=${IGNORE_CACHE_FROM_HERE}
depends_on:
db:
condition: service_healthy
ports:
- 3838:3838
volumes:
- shiny-data:/app/data
- shiny-config:/app/config
- /var/run/docker.sock:/var/run/docker.sock
environment:
UID: ${UID}
GID: ${GID}
restart: unless-stopped
# healthcheck:
# test: curl -f http://0.0.0.0:5000/api/curltest
# interval: 10s
# timeout: 10s
# retries: 5
tty: true
command: ["Rscript", "/app/run_phenoRankeR.R", "dbServer", "db" ]
db:
image: postgres:16.1-alpine3.18
container_name: pheno-ranker-db
volumes:
- postgres-data:/var/lib/postgresql/data/
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PW}
restart: unless-stopped
healthcheck:
test: pg_isready -U postgres
ports:
- 5432:5432
volumes:
postgres-data:
shiny-data:
driver: local
driver_opts:
type: none
device: ${PWD}/data
o: bind
shiny-config:
driver: local
driver_opts:
type: none
device: ${PWD}/config
o: bind