forked from INRGIA-team/Urban-Topology-Analysis-Service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
50 lines (46 loc) · 1.01 KB
/
docker-compose.yaml
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.7'
services:
postgres:
image: postgis/postgis:12-3.3-alpine
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=fastapi_database
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "54321:5432"
webserver:
build:
context: api/
image: fastapi_service
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=fastapi_database
volumes:
- type: volume
source: logsvol
target: /app/logs
- type: bind
source: ./api/fastapi_service #delete in prod and add copy
target: /app/fastapi_service
- type: bind
source: ./api/cities_osm
target: /app/fastapi_service/data/cities_osm
restart: always
depends_on:
- postgres
ports:
- "8002:8002"
frontend:
build:
context: ui/
image: ts_service
depends_on:
- webserver
ports:
- "4200:4200"
volumes:
pgdata:
logsvol: