Skip to content

Conversation

@NovemLinguae
Copy link
Member

Why

  • infrastructure as code is good practice
  • helps get developers up and running quickly (if they're familiar with docker)
  • makes it super easy to change the PHP version number

What

  • add a Dockerfile
  • add a docker-compose.yml

Notes

  • the documentation for this is at the top of the Dockerfile
  • https://localhost:8085/public will work out of the box. no need to use symfony serve
  • need to use host.docker.internal instead of 127.0.0.1 in the .env.local file
  • this patch is an incremental step and does not implement everything. to implement later: a local database

Why
- [infrastructure as code](https://en.wikipedia.org/wiki/Infrastructure_as_code) is good practice
- helps get developers up and running quickly (if they're familiar with docker)
- makes it super easy to change the PHP version number

What
- add a Dockerfile
- add a docker-compose.yml

Notes
- the documentation for this is at the top of the Dockerfile
- https://localhost:8085/public will work out of the box. no need to use `symfony serve`
- need to use host.docker.internal instead of 127.0.0.1 in the .env.local file
- this patch is an incremental step and does not implement everything. to implement later: a local database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants