Skip to content

Instantly share code, notes, and snippets.

@capywebformations
Last active November 15, 2022 08:54
Show Gist options
  • Save capywebformations/0c713df3552d664250799290cabf3d0f to your computer and use it in GitHub Desktop.
Save capywebformations/0c713df3552d664250799290cabf3d0f to your computer and use it in GitHub Desktop.
Docker - Dockerize Symfony

πŸ“” Dockerize a Symfony Project

TP

  • βœ”οΈ Create a Symfony project with 1 simple CRUD or Use an existing Symfony Project
  • βœ”οΈ Create a development environment for the project
  • βœ”οΈ Create a preprod environment for the project

πŸ”΄ Obligations

  • :octocat: Github Flow (PR mandatory)
  • πŸ“– Respect Github open source guidelines
  • 〰️ Comment each line of the Dockerfile or docker-compose files
  • πŸ’― Complete README to initialize the project
  • πŸ”’ Use only official Docker Hub images and lock versions of your images
  • β›” Mandatory services :
    • Php
    • Composer
    • Database
    • Apache or Nginx
  • πŸ“© Push your image on Docker Hub or Github (follow the mandatory rules for each platform)

🎁 Bonus:

  • 😭 Add a command to launch your tests
  • πŸ™ˆ Create 3 tests for the CRUD
  • πŸ“€ Create a prod environment for the project
  • 😱 Push your docker on a vps or on heroku
  • πŸ’ͺ Services :
    • Testing email service (MailHog)
    • Proxy (Traefik)
    • SSL certificat (Let's Encrypt) ⚠️ You need a domain name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment