-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (67 loc) · 1.61 KB
/
Copy pathdocker-compose.yml
File metadata and controls
69 lines (67 loc) · 1.61 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
services:
postgres:
image: postgres:17
restart: always
ports:
- "${DB_PORT}:5432"
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready",
"-d",
"$$POSTGRES_DB",
"-U",
"$$POSTGRES_USER",
]
interval: 30s
timeout: 60s
retries: 5
start_period: 40s
data-loader:
image: quay.io/massbank/massbank-export-api:latest
profiles: ["import"]
build:
context: .
dockerfile: Dockerfile
pull_policy: always
restart: "no"
entrypoint: ["java", "-Xmx1200m", "-jar", "/app-import.jar"]
depends_on:
postgres:
condition: service_healthy
environment:
MB_DATA_DIRECTORY: "/MassBank-data"
DB_HOST: postgres
DB_PORT: ${DB_PORT}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_NAME: ${DB_NAME}
volumes:
- "${MB_DATA_DIRECTORY}:/MassBank-data:ro"
export-service:
image: quay.io/massbank/massbank-export-api:latest
build:
context: .
dockerfile: Dockerfile
pull_policy: always
restart: always
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
environment:
MB_DATA_DIRECTORY: "/MassBank-data"
CORS_ALLOWED_ORIGINS: ${CORS_ALLOWED_ORIGINS:-*}
DB_HOST: postgres
DB_PORT: ${DB_PORT}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_NAME: ${DB_NAME}
volumes:
- "${MB_DATA_DIRECTORY}:/MassBank-data:ro"