-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.vscode.yml
45 lines (43 loc) · 1.25 KB
/
docker-compose.vscode.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
version: "3"
services:
app-sqlalchemy:
container_name: stac-fastapi-sqlalchemy
image: stac-utils/stac-fastapi
build:
context: .
dockerfile: Dockerfile_dev
platform: linux/amd64
environment:
- TZ=Europe/Copenhagen
- APP_HOST=0.0.0.0
- DB_MIN_CONN_SIZE=1
- DB_MAX_CONN_SIZE=1
- APP_PORT=8081
- WEB_CONCURRENCY=${WEB_CONCURRENCY}
- ENVIRONMENT=${ENVIRONMENT:-dev}
- DEBUG=$DEBUG
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_PASS=$POSTGRES_PASS
- POSTGRES_DBNAME=$POSTGRES_DBNAME
- POSTGRES_HOST=$POSTGRES_HOST
- POSTGRES_PORT=${POSTGRES_PORT:-5432}
- POSTGRES_APPLICATION_NAME=${POSTGRES_APPLICATION_NAME:-stac_fastapi_dockercompose}
- COGTILER_BASEPATH=$COGTILER_BASEPATH
volumes:
- ./src/stac_fastapi:/app/stac_fastapi
- ./src/scripts:/app/scripts
networks:
- dev-stac-fastapi-network
ports:
- 8081:8081
- 5678:5678
command: [
"sh",
"-c",
"pip install debugpy && python -m debugpy --wait-for-client --listen
0.0.0.0:5678 -m uvicorn stac_fastapi.sqlalchemy.app:app --reload
--host 0.0.0.0 --port 8081"
]
networks:
dev-stac-fastapi-network:
driver: bridge