laravel - Docker Swarm production -
i’ve been using docker while development. using @ first docker, transferred docker-compose. working locally. trying app on production servers running docker swarm. looking best practices.
right have laravel application, 5 services.
- mysql
- redis
- custom container code on it.
- beanstalkd
- php7 queue:listen container
to deploy run command: docker stack deploy -c docker-compose-prod.yml myapp works, mostly… queue:listen container exits non-zero exit (255) not highest concern , fix bit of effort.
now application deployed. can reach @ ip. can’t database connections because database doesn’t have tables. how can run php artisan migrate command, fill database? or best practice deploy application migration , such?
extra note: case in production environment.
Comments
Post a Comment