forked from earthpulse/eotdl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 1.33 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
version: "3"
services:
eotdl-mongo:
image: mongo
ports:
- 27017:27017
volumes:
- ./data/mongo:/data/db
eotdl-minio:
image: minio/minio
container_name: eotdl-minio
ports:
- 9020:9000
- 9021:9001
volumes:
- ./data/minio:/data
environment:
- MINIO_ROOT_USER=eotdl
- MINIO_ROOT_PASSWORD=12345678
command: server /data --console-address ":9001"
eotdl-api:
build: ./apis/eotdl
container_name: eotdl-api
# platform: linux/amd64
environment:
- MONGO_URL=mongodb://eotdl-mongo:27017
- MONGO_DB_NAME=eotdl
- S3_ENDPOINT=eotdl-minio:9000
- ACCESS_KEY_ID=eotdl
- SECRET_ACCESS_KEY=12345678
- S3_BUCKET=dev
- S3_SSL=False
- ADMIN_API_KEY=12345678
- TZ=Europe/Madrid
- API_BASE_URL=http://localhost:8010 # used to generate file urls
- EOX_PROVISIONINGS_URL=https://provisionings-dev.api.eotdl.com/provisionings
- EOX_VAULT_URL=https://vault.api.eotdl.com/v1
- EOX_VAULT_ROLE_ID=0fb065f7-dd9f-447b-e8fc-819c7678090e
- EOX_VAULT_SECRET_ID=54c64c8f-2a7a-af90-82b2-f62dfa16b3a4
env_file: # auth0 and geodb credentials
- .env
volumes:
- ./apis/eotdl:/api
- ./eotdl/eotdl:/api/eotdl
ports:
- 8010:8000
command: uvicorn api.main:app --host 0.0.0.0 --reload