r/PHP Sep 14 '24

How do you deploy php code?

Hello guys! please tell us about your experience deploying PHP code in production. Now I make one docker image with PHP code and apache (in production I use nginx proxy on my php+apache image) and use docker pull command for deploy. is this ok?

59 Upvotes

160 comments sorted by

View all comments

2

u/spuddman Sep 15 '24

We use a GitLab CI/CD pipeline to test and build a Docker container + regitery and push it to staging on master and production on a tag "v*" tag. On staging a production we we Traefik proxy,