-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
executable file
·47 lines (44 loc) · 1.08 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
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:
- 9030:9000
- 9031:9001
volumes:
- ./data/minio:/data
environment:
- MINIO_ROOT_USER=eotdl
- MINIO_ROOT_PASSWORD=12345678
command: server /data --console-address ":9001"
eotdl-api:
build: ./api
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
env_file: # auth0 and eox credentials
- .env
volumes:
- ./api/api:/api
- ./eotdl/eotdl:/api/eotdl
- ./kk:/tmp
ports:
- 8001:8000
command: uvicorn api.main:app --host 0.0.0.0 --reload