Browse Source

Add no swarm deployment instructions to README

multi_domain
ßingen 7 years ago
parent
commit
3c71ae48b0
1 changed files with 31 additions and 0 deletions
  1. +31
    -0
      README.md

+ 31
- 0
README.md View File

Configuration and deployment Configuration and deployment
---------------------------- ----------------------------


## Swarm mode

First download the repos: First download the repos:


git clone https://github.com/bingen/rpi_docker_home_server.git git clone https://github.com/bingen/rpi_docker_home_server.git


docker-compose build && docker push your-container && env $(cat .env | grep "^[A-Z]" | xargs) docker stack deploy --compose-file docker-compose.yml your-stack docker-compose build && docker push your-container && env $(cat .env | grep "^[A-Z]" | xargs) docker stack deploy --compose-file docker-compose.yml your-stack


## No swarm mode

If it's a restart, clean first previous containers:

for i in $(docker ps -a | grep Exited | grep dhs | cut -f 1 -d ' '); do docker rm $i; done;

Optionally build:

docker-compose build

And then restart:

docker-compose --compatibility -p dhs up -d

Note: `dhs` is just a custom prefix to easily identify containers, you can use your own.

Add users:

./add_users_noswarm.sh

Add DNS entries:

./add_dns_entries_noswarm.sh

If you add or modify a service, you can update it running:

docker-compose build && docker-compose -p dhs up <your-service> -d


Other useful commands Other useful commands
--------------------- ---------------------



Loading…
Cancel
Save