docs(localstack): fix formatting of code block

This commit is contained in:
Seth Falco 2024-11-14 10:30:57 +00:00 committed by GitHub
parent 28afc971cb
commit 7459172ca1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 38 additions and 38 deletions

View File

@ -224,47 +224,47 @@ Now that you have learnt how to connect a non-containerized Node.js application
```yaml ```yaml
services: services:
backend: backend:
build: build:
context: ./backend context: ./backend
dockerfile: Dockerfile dockerfile: Dockerfile
ports: ports:
- 5000:5000 - 5000:5000
depends_on: depends_on:
- localstack - localstack
- mongodb - mongodb
env_file: env_file:
- backend/.env - backend/.env
frontend: frontend:
build: build:
context: ./frontend context: ./frontend
dockerfile: Dockerfile dockerfile: Dockerfile
ports: ports:
- 5173:5173 - 5173:5173
depends_on: depends_on:
- backend - backend
environment: environment:
- REACT_APP_API_URL=http://backend:5000/api - REACT_APP_API_URL=http://backend:5000/api
mongodb: mongodb:
image: mongo image: mongo
container_name: mongodb container_name: mongodb
volumes: volumes:
- mongodbdata:/data/db - mongodbdata:/data/db
ports: ports:
- 27017:27017 - 27017:27017
localstack: localstack:
image: localstack/localstack image: localstack/localstack
container_name: localstack container_name: localstack
ports: ports:
- 4566:4566 - 4566:4566
environment: environment:
- SERVICES=s3 - SERVICES=s3
- GATEWAY_LISTEN=0.0.0.0:4566 - GATEWAY_LISTEN=0.0.0.0:4566
volumes: volumes:
- ./localstack:/docker-entrypoint-initaws.d" - ./localstack:/docker-entrypoint-initaws.d"
volumes: volumes:
mongodbdata: mongodbdata: