-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
46 lines (43 loc) · 1006 Bytes
/
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
version: '3'
services:
app-mongo:
container_name: stac-fastapi-mongo
image: stac-utils/stac-fastapi
restart: always
build:
context: .
dockerfile: Dockerfile
platform: linux/amd64
environment:
- APP_HOST=0.0.0.0
- APP_PORT=8083
- RELOAD=true
- ENVIRONMENT=local
- WEB_CONCURRENCY=10
- MONGO_USER=dev
- MONGO_PASS=stac
- MONGO_PORT=27017
- MONGO_HOST=mongo_db
ports:
- "8083:8083"
volumes:
- ./stac_fastapi:/app/stac_fastapi
- ./scripts:/app/scripts
depends_on:
- mongo_db
command:
bash -c "./scripts/wait-for-it.sh mongo_db:27017 && python -m stac_fastapi.mongo.app"
mongo_db:
image: mongo:5.0
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: "dev"
MONGO_INITDB_ROOT_PASSWORD: "stac"
volumes:
- ./mongo_data:/data/db
ports:
- "27017:27017"
command: mongod
networks:
default:
name: stac-fastapi-network