Skip to content

Commit

Permalink
Add inline documentation
Browse files Browse the repository at this point in the history
References #14
  • Loading branch information
zacharyrperales committed May 7, 2023
1 parent 3ca39c8 commit e59a53d
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,38 @@
# Specifies the Docker Compose version
version: "3"

# Defines the services that make up the application
services:
# Defines a service called "db"
db:
build:
# Specifies how to build the Docker image for this service
build:
# Specifies the build context, which is the directory containing the Dockerfile
context: db
# Specifies the Dockerfile to use for building the image
dockerfile: Dockerfile
networks:
# Attaches the service to the "book-scraper-network" network
- book-scraper-network
# Specifies the name to use for the container running this service
container_name: db


# Defines a service called "scraper"
scraper:
# Specifies how to build the Docker image for this service
build:
# Specifies the build context, which is the directory containing the Dockerfile
context: app
# Specifies the Dockerfile to use for building the image
dockerfile: Dockerfile
depends_on:
# Specifies that this service depends on the "db" service
- db
networks:
# Attaches the service to the "book-scraper-network" network
- book-scraper-network

# Defines a network that the services can use to communicate with each other
networks:
book-scraper-network:
# Defines a network named "book-scraper-network"
book-scraper-network:

0 comments on commit e59a53d

Please sign in to comment.