Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fork, Commit, Merge - Medium Issue (YAML/Docker) #1107

Closed
nikohoffren opened this issue Oct 20, 2023 · 2 comments
Closed

Fork, Commit, Merge - Medium Issue (YAML/Docker) #1107

nikohoffren opened this issue Oct 20, 2023 · 2 comments

Comments

@nikohoffren
Copy link
Member

Fork, Commit, Merge - Medium Issue (YAML/Docker)

Create a Configuration for a Multi-Service Application

Note: You don't have ask permission to start solving the issue or get assigned, since these issues are supposed to be always open for new contributors. The actions-user bot will reset the file back to previous state for the next contributor after your commit is merged. So you can just simply start working with the issue right away!

How to get started

Open the tasks/yaml/medium directory from the root of your project.
Then open up the docker-compose.yml file and once it is properly created according to the YAML syntax and the task in hand, you are done and ready to make a pull request!
Note: You can test your YAML code in a editor like this.

Description:

Your task is to create a docker-compose.yml file that describes a multi-service application. This application should contain:

  • A web server running on port 8080 using the nginx image.
  • A database server running on the default port using the postgres image.

The web server should have access to the database server but not vice versa.

Requirements:

  • Use Docker Compose version 3.
  • Specify service names, image versions, and exposed ports.
  • Set up a custom network and make sure only the web server can communicate with the database.
  • Use environment variables to set the database name, user, and password for the PostgreSQL service.

Example Structure:

version: '3'

services:
  # Define your services here
  
networks:
  # Define your networks here

Evaluation Criteria:

  • Valid YAML syntax.
  • Correct use of Docker Compose version and features.
  • Correct network setup.
  • The web server should be able to connect to the database, but the database should not have access to the web server.

Check out README.md for more instructions and how to make a pull request.

Feel free to ask any questions here if you have some problems!

Also, kindly give this project a star to enhance its visibility for new developers!

@Ayaan49
Copy link
Contributor

Ayaan49 commented Oct 24, 2023

Please assign me this issue.

@nikohoffren
Copy link
Member Author

Please assign me this issue.

Hi!

As it says on the description:
Note: You don't have ask permission to start solving the issue or get assigned, since these issues are supposed to be always open for new contributors. The actions-user bot will reset the file back to previous state for the next contributor after your commit is merged. So you can just simply start working with the issue right away!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants