-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
140 lines (139 loc) · 2.88 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: "3.8"
services:
web:
build:
context: ./
dockerfile: Dockerfile
# image: nfdi4chem/nmrkit:dev-latest
container_name: nmrkit-api
volumes:
- ./app:/code/app
- "/var/run/docker.sock:/var/run/docker.sock"
- shared-data:/shared
ports:
- "80:80"
healthcheck:
test:
[
"CMD",
"curl",
"-f",
"http://localhost:80/latest/ping"
]
interval: 1m30s
timeout: 10s
retries: 20
start_period: 60s
env_file:
- ./.env
nmr-load-save:
build: ./app/scripts/nmr-cli
entrypoint: /bin/sh
stdin_open: true
tty: true
container_name: nmr-converter
nmr-respredict:
build: ./app/scripts/nmr-respredict
entrypoint: /bin/sh
stdin_open: true
tty: true
container_name: nmr-respredict
volumes:
- shared-data:/shared
prometheus:
image: prom/prometheus
container_name: nmrkit_prometheus
ports:
- 9090:9090
volumes:
- ./prometheus_data/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
grafana:
image: grafana/grafana
container_name: nmrkit_grafana
ports:
- 3000:3000
volumes:
- grafana_data:/var/lib/grafana
redis:
image: "redis:alpine"
ports:
- "${FORWARD_REDIS_PORT:-6379}:6379"
volumes:
- "redis:/data"
networks:
- default
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
retries: 3
timeout: 5s
pgsql:
image: "informaticsmatters/rdkit-cartridge-debian"
ports:
- "${FORWARD_DB_PORT:-5432}:5432"
env_file:
- ./.env
volumes:
- "pgsql:/var/lib/postgresql/data"
networks:
- default
healthcheck:
test:
[
"CMD",
"pg_isready",
"-q",
"-d",
"${POSTGRES_DB}",
"-U",
"${POSTGRES_USER}"
]
retries: 3
timeout: 5s
minio:
image: 'minio/minio:latest'
ports:
- '${FORWARD_MINIO_PORT:-9001}:9001'
- '${FORWARD_MINIO_CONSOLE_PORT:-8900}:8900'
environment:
MINIO_ROOT_USER: 'sail'
MINIO_ROOT_PASSWORD: 'password'
volumes:
- 'minio:/data/minio'
networks:
- default
command: minio server /data/minio --console-address ":8900"
healthcheck:
test:
[
"CMD",
"curl",
"-f",
"http://localhost:9001/minio/health/live"
]
retries: 3
timeout: 5s
volumes:
prometheus_data:
driver: local
driver_opts:
o: bind
type: none
device: ./prometheus_data
grafana_data:
driver: local
driver_opts:
o: bind
type: none
device: ./grafana_data
redis:
driver: local
minio:
driver: local
pgsql:
driver: local
shared-data:
networks:
default:
name: nmrkit_vpc