Created
April 20, 2024 04:41
-
-
Save MDReal32/ce3de7edd83b445459390f43b6f55ab1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is used to define the services that will be used in the docker-compose command | |
# Version 3.8 is used to define the version of the compose file | |
version: "3.8" | |
# Services are defined here | |
# Service is a container that will be created by the `docker compose` command | |
services: | |
docker-basics-example-project: | |
# The image that will be used to create the container | |
build: | |
# The context is the path where the Dockerfile is located | |
context: . | |
# The dockerfile is the name of the Dockerfile that will be used to create the container | |
dockerfile: Dockerfile | |
# The name of the image that will be created | |
image: docker-basics-example-project | |
# The name of the container | |
container_name: docker-basics-example-project | |
# The ports that will be exposed by the container | |
ports: | |
- "3000:3000" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment