Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

Latest commit

 

History

History

docker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Arquiyalt Docker

Table Of Contents

Docker files

file use
docker-compose.yml Run the full app in a single machine. For dev (run in your machine) and tests
docker-compose-stack.yml Run the app in arqss swarm

Dev deploy

Use docker-compose to deploy the full app in a single machine for testing

docker-compose build    # Build images
docker-compose up -d    # Run them

Swarm deploy

Use docker stack deploy to deploy the app in a docker swarm manager node

# Initialize swarm in a node
docker swarm init
# Use provided command to join
# other nodes into swarm

# Create network for the stack
docker network create --driver overlay proxy
# Deploy the stack
docker stack deploy -c docker-compose-stack.yml arqui

To unmount the stack and the swarm

docker stack rm arqui
docker network rm proxy
docker swarm leave --force

Update service

If a new version of a service image is available we can update it

docker service update --image <image> <service>

This will update one service task at a time, reducing downtime
Number of services updated in parallel is defined in the stack file

Other commands

Services

docker container ls

Scripts

Config and helpers scripts can be found in the scripts folder

script use
createDbFolder.sh (DON'T RUN) Create database folders for volume mount
dockerMachine.sh (DON'T RUN) Configure docker-machine with all arqss machines
installDocker.sh Install docker, docker-compose and docker-machine on all arqss machines
removeNginx.sh Remove nginx from all arqss machines

Contributors: