-
Notifications
You must be signed in to change notification settings - Fork 3
/
compose.development.override.yaml
78 lines (71 loc) · 1.66 KB
/
compose.development.override.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: local-osm
services:
rtransparent:
container_name: rtransparent
build:
context: .
dockerfile: ./external_components/rtransparent/Dockerfile
volumes:
- ./external_components/rtransparent:/app
############ Development images ############
db:
# use old version of mongo to avoid Apple Instruction set error
image: mongo:4.4.6
container_name: db
ports:
- 27017:27017
environment:
- MONGO_INITDB_DATABASE=osm
base:
command: ["echo", "base image"]
image: nimhdsst/osm_base:latest
build:
context: .
dockerfile: Dockerfile.base
dashboard:
container_name: dashboard
environment:
- MONGODB_URI=mongodb://db:27017/osm
image: nimhdsst/osm_dashboard:latest
build:
context: .
dockerfile: ./web/dashboard/Dockerfile
ports:
- "8501:8501"
volumes:
- ./web/dashboard:/app
- ./dashboard_data:/opt/data
depends_on:
- db
- base
develop:
watch:
- action: sync+restart
path: ./osm
target: /opt/osm/osm
ignore:
- __pycache__
web_api:
container_name: web_api
working_dir: /app/app
command: ["fastapi","dev","--host","0.0.0.0","--port","80"]
environment:
- MONGODB_URI=mongodb://db:27017/osm
image: nimhdsst/osm_web_api:latest
build:
context: .
dockerfile: ./web/api/Dockerfile
ports:
- 80:80
volumes:
- ./web/api:/app/app
depends_on:
- db
- base
develop:
watch:
- action: sync+restart
path: ./osm
target: /opt/osm/osm
ignore:
- __pycache__