forked from MaayanLab/rummagene
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
77 lines (74 loc) · 2.26 KB
/
docker-compose.yaml
File metadata and controls
77 lines (74 loc) · 2.26 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
version: '3.9'
services:
pfocrummage-app:
build: .
platform: linux/amd64
image: maayanlab/pfocrummage:0.0.12
x-kubernetes:
imagePullPolicy: IfNotPresent
annotations:
maayanlab.cloud/ingress: https://pfocrummage.maayanlab.cloud
environment:
- PUBLIC_URL=https://pfocrummage.maayanlab.cloud
- DATABASE_URL=postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@pfocrummage-postgres:5432/$POSTGRES_DB
- AUTHORIZATION_HEADER=$AUTHORIZATION_HEADER
- NODE_ENV=production
- ENRICH_URL=http://pfocrummage-enrich:8000
- NEXT_PUBLIC_GA_MEASUREMENT_ID=$NEXT_PUBLIC_GA_MEASUREMENT_ID
ports:
- 3000:3000
pfocrummage-enrich:
build: enrich
platform: linux/amd64
image: maayanlab/pfocrummage-enrich:0.1.0
x-kubernetes:
imagePullPolicy: IfNotPresent
environment:
- 'ROCKET_DATABASES={postgres={url="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@pfocrummage-postgres:5432/${POSTGRES_DB}"}}'
ports:
- 8000:8000
pfocrummage-postgres:
build: db
platform: linux/amd64
image: maayanlab/pfocrummage-postgres:0.0.1
x-kubernetes:
imagePullPolicy: IfNotPresent
environment:
- POSTGRES_DB
- POSTGRES_USER
- POSTGRES_PASSWORD
- ENRICH_URL=http://pfocrummage-enrich:8000
ports:
- 5432:5432
volumes:
- pfocrummage-data:/var/lib/postgresql/data
pfocrummage-bot:
build: bot
platform: linux/amd64
image: maayanlab/pfocrummage-bot:0.0.1
x-kubernetes:
imagePullPolicy: IfNotPresent
command: ["bash", "-c", "cd /work/data && touch log && tail -f log"]
environment:
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@pfocrummage-postgres:5432/${POSTGRES_DB}
- ENRICH_URL=http://pfocrummage-enrich:8000
- API_KEY
- EMAIL
labels:
ofelia.enabled: "true"
# 0 second
# 0 minute
# 9 hour
# * day of month
# * month of year
# 1 day of week (monday)
ofelia.job-exec.update-db.schedule: "0 8 21 * *"
ofelia.job-exec.update-db.command: "/bin/sh -c '/work/bot.sh > /work/data/log 2> /work/data/log'"
volumes:
pfocrummage-data:
x-kubernetes:
size: 20Gi
class: gp2
x-kubernetes:
name: pfocrummage
namespace: pfocrummage