-
-
Notifications
You must be signed in to change notification settings - Fork 946
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
Deploy api-platform 2.6 with docker #1859
Comments
Ok, I see there was an update in 2.6.3 version and now I think it should looks like: On local:
On server:
Am I correct? :-) Those tow commands are equals and are for development time (?):
|
Yes, that's the correct way to deploy. And yes too, you don't need to specify docker-compose.override.yml for development, you can just use docker-compose normally, read docker-compose docs. https://docs.docker.com/compose/production/
In this case, the override file contains the development configuration. The process for deploying in production in 2.5 was slightly more complicated than that, there was an external repository for production api-platform/docker-compose-prod but it was archived and is no longer relevant. |
According to this issue api-platform#1859 to run docker-compose on production we have to run command like `docker-compose -f docker-compose.yml -f docker-compose.prod.yml ...`. With setting up an env COMPOSE_FILE we don't have to prefix docker commands with compose files. See https://docs.docker.com/compose/reference/envvars/#compose_file
Hi!
Deploy with docker to version 2.5 was easy with https://github.com/api-platform/docker-compose-prod
On local:
On server:
How should I do it with version 2.6? Which docker-compose* file(s) use for build/push, which docker-compose* file(s) use for pull/up?
For example file docker-compose.override.yml expose caddy ports so it looks good for
docker-compose up -d
but it uses build target dev for pwa and bind local directory for php.The text was updated successfully, but these errors were encountered: