@@ -11,6 +11,8 @@ services:
11
11
POSTGRES_DB : $DAGSTER_POSTGRES_DB
12
12
networks :
13
13
- bag3d-dev-network
14
+ volumes :
15
+ - bag3d-dev-dagster-postgresql:/var/lib/postgresql/data
14
16
15
17
# This service stores the asset data that is generated by the pipeline
16
18
data-postgresql :
@@ -76,15 +78,21 @@ services:
76
78
data-postgresql :
77
79
condition : service_healthy
78
80
restart : true
81
+ # Normally we wouldn't need watch:action:rebuild, but because we are using
82
+ # dagster's DockerRunLauncher, it always starts a new container from the image, for
83
+ # each run. While, watch:action:sync (or sync+restart)copies the changed local code into the
84
+ # 3dbag-pipeline-core-develop container (not the image). But since DockerRunLauncher
85
+ # doesn't actaully use this container, but always starts a new one, we have to build
86
+ # a new image on each change.
79
87
develop :
80
88
watch :
81
- - action : sync
89
+ - action : rebuild
82
90
path : ../packages/common
83
91
target : /opt/3dbag-pipeline/packages/common
84
92
- action : rebuild
85
93
path : ../packages/common/pyproject.toml
86
94
target : /opt/3dbag-pipeline/packages/common/pyproject.toml
87
- - action : sync
95
+ - action : rebuild
88
96
path : ../packages/core
89
97
target : /opt/3dbag-pipeline/packages/core
90
98
- action : rebuild
@@ -115,13 +123,13 @@ services:
115
123
restart : true
116
124
develop :
117
125
watch :
118
- - action : sync
126
+ - action : rebuild
119
127
path : ../packages/common
120
128
target : /opt/3dbag-pipeline/packages/common
121
129
- action : rebuild
122
130
path : ../packages/common/pyproject.toml
123
131
target : /opt/3dbag-pipeline/packages/common/pyproject.toml
124
- - action : sync
132
+ - action : rebuild
125
133
path : ../packages/floors_estimation
126
134
target : /opt/3dbag-pipeline/packages/floors_estimation
127
135
- action : rebuild
@@ -151,13 +159,13 @@ services:
151
159
restart : true
152
160
develop :
153
161
watch :
154
- - action : sync
162
+ - action : rebuild
155
163
path : ../packages/common
156
164
target : /opt/3dbag-pipeline/packages/common
157
165
- action : rebuild
158
166
path : ../packages/common/pyproject.toml
159
167
target : /opt/3dbag-pipeline/packages/common/pyproject.toml
160
- - action : sync
168
+ - action : rebuild
161
169
path : ../packages/party_walls
162
170
target : /opt/3dbag-pipeline/packages/party_walls
163
171
- action : rebuild
@@ -228,6 +236,8 @@ volumes:
228
236
external : true
229
237
bag3d-dev-data-pipeline :
230
238
external : true
239
+ bag3d-dev-dagster-postgresql :
240
+ external : true
231
241
bag3d-dev-dagster-home :
232
242
external : true
233
243
0 commit comments