File tree Expand file tree Collapse file tree 1 file changed +41
-41
lines changed Expand file tree Collapse file tree 1 file changed +41
-41
lines changed Original file line number Diff line number Diff line change @@ -224,47 +224,47 @@ Now that you have learnt how to connect a non-containerized Node.js application
224224
225225 ``` yaml
226226 services :
227- backend :
228- build :
229- context : ./backend
230- dockerfile : Dockerfile
231- ports :
232- - 5000:5000
233- depends_on :
234- - localstack
235- - mongodb
236- env_file :
237- - backend/.env
238-
239- frontend :
240- build :
241- context : ./frontend
242- dockerfile : Dockerfile
243- ports :
244- - 5173:5173
245- depends_on :
246- - backend
247- environment :
248- - REACT_APP_API_URL=http://backend:5000/api
249-
250- mongodb :
251- image : mongo
252- container_name : mongodb
253- volumes :
254- - mongodbdata:/data/db
255- ports :
256- - 27017:27017
257-
258- localstack :
259- image : localstack/localstack
260- container_name : localstack
261- ports :
262- - 4566:4566
263- environment :
264- - SERVICES=s3
265- - GATEWAY_LISTEN=0.0.0.0:4566
266- volumes :
267- - ./localstack:/docker-entrypoint-initaws.d"
227+ backend :
228+ build :
229+ context : ./backend
230+ dockerfile : Dockerfile
231+ ports :
232+ - 5000:5000
233+ depends_on :
234+ - localstack
235+ - mongodb
236+ env_file :
237+ - backend/.env
238+
239+ frontend :
240+ build :
241+ context : ./frontend
242+ dockerfile : Dockerfile
243+ ports :
244+ - 5173:5173
245+ depends_on :
246+ - backend
247+ environment :
248+ - REACT_APP_API_URL=http://backend:5000/api
249+
250+ mongodb :
251+ image : mongo
252+ container_name : mongodb
253+ volumes :
254+ - mongodbdata:/data/db
255+ ports :
256+ - 27017:27017
257+
258+ localstack :
259+ image : localstack/localstack
260+ container_name : localstack
261+ ports :
262+ - 4566:4566
263+ environment :
264+ - SERVICES=s3
265+ - GATEWAY_LISTEN=0.0.0.0:4566
266+ volumes :
267+ - ./localstack:/docker-entrypoint-initaws.d"
268268
269269 volumes :
270270 mongodbdata :
You can’t perform that action at this time.
0 commit comments