-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.fastapi.yml
52 lines (46 loc) · 1.2 KB
/
docker-compose.fastapi.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
version: "3.9"
services:
backend:
image: 'clowder/clowder-fastapi:${TAG:-latest}'
build:
# export GH_ACCESS_TOKEN=your-personal=access-token
context: https://${GH_ACCESS_TOKEN}:@github.com/clowder-framework/clowder2-fastapi
environment:
MONGODB_URL: mongodb://mongo:27017
MINIO_SERVER_URL: minio:9000
ports:
- "8888:80"
depends_on:
- mongo
- minio
mongo:
image: mongo:5.0
restart: always
volumes:
- mongo:/data/db
ports:
- "27017:27017"
# environment:
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: example
minio:
image: quay.io/minio/minio:RELEASE.2021-11-09T03-21-45Z
command: server /data --console-address ":9001"
volumes:
- minio:/data
environment:
MINIO_ROOT_USER: clowder
MINIO_ROOT_PASSWORD: clowdersecret
ports:
- "9000:9000"
- "9001:9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
## By default this config uses default local driver,
## For custom volumes replace with volume driver configuration.
volumes:
minio:
mongo: