-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
38 lines (37 loc) · 973 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
version: '3'
services:
app:
build:
dockerfile: local/Dockerfile
environment:
- HOST=0.0.0.0
- PORT=8081
- PYTHONWARNINGS=ignore
- POSTGRES_USER=username
- POSTGRES_PASS=password
- POSTGRES_DBNAME=postgis
- POSTGRES_HOST=database
- POSTGRES_PORT=5432
- DEBUG=TRUE
# - TIPG_TABLE_CONFIG__public_fireline__datetimecol=t
ports:
- "${MY_DOCKER_IP:-127.0.0.1}:8081:8081"
depends_on:
- database
command:
bash -c "bash /tmp/scripts/wait-for-it.sh database:5432 --timeout=0
&& uvicorn fast_api_main:app --host 0.0.0.0 --port 8081 --reload"
volumes:
- ./scripts:/tmp/scripts
database:
build:
dockerfile: local/Dockerfile.db
environment:
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
- POSTGRES_DB=postgis
ports:
- "5432:5432"
command: postgres -N 500
volumes:
- ./.pgdata:/var/lib/postgresql/data