DevOps / developer @ Studio Emma
Magento Silver Solution Partner
Pimcore Gold Solution Partner
further improve software stack consistency
can be hosted by us
easy to manage
easy for deployment
$ docker run -e MYSQL_ROOT_PASSWORD=toor -d \ --name mysql mysql:5.7 $ docker run --link mysql -d \ --name my-phpapp myphpapp:latest $ docker run --link my-phpapp -d \ -p 80:80 \ --name my-nginx mynginx:latest
$ uptime 20:04:33 up 16 min, 8 users, load average: 0,63, 0,46, 0,34
1 version: '3' 2 services: 3 redis: 4 image: redis:alpine 5 mysql: 6 image: mysql 7 mailcatcher: 8 image: schickling/mailcatcher 9 application: 10 image: dockerwest/php-pimcore:7.1 11 volumes: 12 - ../pimcore:/phpapp 13 links: 14 - mysql 15 - redis 16 - mailcatcher 17 nginx: 18 image: dockerwest/nginx-pimcore:stable 19 volumes: 20 - ../pimcore:/phpapp 21 links: 22 - application
Chosen base distribution:
$ apk add --update --no-cache docker $ rc-update add docker default
communication between client and server will be encrypted
to communicate with our server(s) we have to setup some environment variables
export DOCKER_HOST=tcp://192.168.250.31:2375
export DOCKER_CERT_PATH=$(pwd)/client-cert
export DOCKER_TLS_VERIFY=1
# docker swarm init \ --advertise-addr=[internal server ip] # docker swarm join-token \ -q worker # docker swarm join \ --token [worker token] \ [internal master server ip]
$ docker node ls $ docker service ls
create/manage a single service within a swarm
create/manage an application stack within a swarm
Enter traefik