Files
lsp/docker-compose.yaml
2025-10-08 15:27:53 +02:00

28 lines
850 B
YAML

version: '3' # docker-compose version
services: # services which our app going to use. (list of containers we want to create)
mongodb: # container name
image: mongo # which image container will build on
ports:
- "27017:27017"
networks: # adding network
- lsp-network
volumes:
- mongo-data:/data/db
lsp:
build: . # build the Docker image for the service using the Dockerfile located in the current directory
ports:
- "4443:443"
- "8080:80"
networks: # adding network
- lsp-network
depends_on:
- mongodb
networks: # allow services to talk to each other while providing isolation from other docker container, running on the same host
lsp-network:
driver: bridge
volumes: # enable persistence of database data across container restart
mongo-data:
driver: local