forked from conda-incubator/conda-store
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
75 lines (70 loc) · 1.93 KB
/
docker-compose.yaml
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
version: "3.8"
services:
conda-store-worker:
build: conda-store-server
user: 1000:1000
volumes:
- ./tests/assets/environments:/opt/environments:ro
- ./tests/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:
build: conda-store-server
user: 1000:1000
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_healthy
redis:
condition: service_healthy
volumes:
- ./tests/assets/conda_store_config.py:/opt/conda_store/conda_store_config.py:ro
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:5000/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:
- "5000:5000"
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