THIS CODE IS NO LONGER IN USE. It was the original language-archives.services site but that has now been replaced with a wordpress instance.
This is the base website and associated docker container code and stack configuration
- language-archives.services
- THIS CODE IS NO LONGER IN USE. It was the original language-archives.services site but that has now been replaced with a wordpress instance.
> cd app
> docker-compose up
Load http://localhost:9000 in your browser.
> cd bin
> ./build
There are 3 helpers in the bin
folder:
- build: will build / rebuild the container
- start-stack: starts the stack (more informaion
Deploying the stack
) - stop-stack: stops the stack (more information in
Removing the stack
)
Docker compose can deploy the stack to a swarm. In this case the swarm is the language-archives.services node. To deploy the stack the swarm first needs to be initialised (this only needs to be done once), viz:
> docker swarm init
> docker swarm join-token manager
This will initialise the swarm and join the current node as a manager. After that, docker stack ls
should show an empty swarm.
$ docker service update --image pdsc/api-service-production:latest --update-parallelism 1 --force pdsc-webstack_api-service