-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yml
101 lines (96 loc) · 2.45 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
services:
conda-store-worker:
image: quansight/conda-store-server:${CONDA_STORE_SERVER_VERSION:-latest}
volumes:
- ./docker/assets/environments:/opt/environments:ro
- ./docker/assets/conda_store_config.py:/opt/conda_store/conda_store_config.py:ro
depends_on:
conda-store-server:
condition: service_healthy
platform: linux/amd64
command:
[
"conda-store-worker",
"--config",
"/opt/conda_store/conda_store_config.py"
]
conda-store-server:
image: quansight/conda-store-server:${CONDA_STORE_SERVER_VERSION:-latest}
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
volumes:
- ./docker/assets/conda_store_config.py:/opt/conda_store/conda_store_config.py:ro
healthcheck:
test:
["CMD", "curl", "--fail", "http://localhost:8080/conda-store/api/v1/"]
interval: 10s
timeout: 5s
retries: 5
platform: linux/amd64
command:
[
"conda-store-server",
"--config",
"/opt/conda_store/conda_store_config.py"
]
ports:
- "8080:8080"
minio:
image: minio/minio:RELEASE.2020-11-10T21-02-24Z
ports:
- "9000:9000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 10s
timeout: 5s
retries: 5
entrypoint: sh
command: -c 'mkdir -p /data/conda-store && /usr/bin/minio server /data'
environment:
MINIO_ACCESS_KEY: admin
MINIO_SECRET_KEY: password
postgres:
image: postgres:13
user: postgres
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: conda-store
redis:
image: bitnami/redis
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
environment:
REDIS_PASSWORD: password
conda-store-ui:
build: .
command: "yarn run start:ui"
profiles:
- local-dev
ports:
- "8000:8000"
depends_on:
conda-store-server:
condition: service_healthy
platform: linux/amd64
volumes:
- ./src:/usr/src/app/src
- ./style:/usr/src/app/style
healthcheck:
test:
["CMD", "curl", "--fail", "http://localhost:8000"]
interval: 20s
timeout: 10s
retries: 8