Skip to content

Instantly share code, notes, and snippets.

@MDReal32
Created April 20, 2024 04:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MDReal32/ce3de7edd83b445459390f43b6f55ab1 to your computer and use it in GitHub Desktop.
Save MDReal32/ce3de7edd83b445459390f43b6f55ab1 to your computer and use it in GitHub Desktop.
# 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