about summary refs log tree commit diff
diff options
context:
space:
mode:
authorReverite <515462+Reverite@users.noreply.github.com>2018-03-20 14:50:55 -0700
committerReverite <515462+Reverite@users.noreply.github.com>2018-03-20 14:50:55 -0700
commit0e335fdbe68e827cbe23ea376c9efe28dc91aaef (patch)
treee53c775baccdb65148a25f315a6156c627838b91
parentdf38c10a0c999ab6616daae98eee04ccf71b9276 (diff)
add a few more notes
-rw-r--r--docker-compose-with-nginx.md44
1 files changed, 44 insertions, 0 deletions
diff --git a/docker-compose-with-nginx.md b/docker-compose-with-nginx.md
index d2c0a98..4a8aa09 100644
--- a/docker-compose-with-nginx.md
+++ b/docker-compose-with-nginx.md
@@ -246,3 +246,47 @@ server {
 
 proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=CACHE:10m inactive=7d max_size=2g use_temp_path=off;
 ```
+
+
+
+## Start Services as Daemon
+
+For initial installation:
+
+```
+$ docker-compose pull
+Pulling redis (redis:alpine)...
+alpine: Pulling from library/redis
+Digest: sha256:692147c8a1673fc172f12724f5313e00b8459291e3fe17a10856b4d2c0bf56fb
+Status: Image is up to date for redis:alpine
+Pulling db (postgres:9-alpine)...
+9-alpine: Pulling from library/postgres
+Digest: sha256:49f5c42990833857f4caa6d06437b3ce6391e830b05e07c11c6c7737be535649
+Status: Image is up to date for postgres:9-alpine
+Pulling streaming (pluralcafe/mastodon:stable)...
+stable: Pulling from pluralcafe/mastodon
+Digest: sha256:10d01d4376454e86bddcdb836b8d088e9eff4a390a1b4e0250b7893dd87f307e
+Status: Downloaded newer image for pluralcafe/mastodon:stable
+Pulling sidekiq (pluralcafe/mastodon:stable)...
+stable: Pulling from pluralcafe/mastodon
+Digest: sha256:10d01d4376454e86bddcdb836b8d088e9eff4a390a1b4e0250b7893dd87f307e
+Status: Image is up to date for pluralcafe/mastodon:stable
+Pulling web (pluralcafe/mastodon:stable)...
+stable: Pulling from pluralcafe/mastodon
+Digest: sha256:10d01d4376454e86bddcdb836b8d088e9eff4a390a1b4e0250b7893dd87f307e
+Status: Image is up to date for pluralcafe/mastodon:stable
+
+$ docker-compose up -d
+Starting redis... done
+Starting db... done
+Starting nginx... done
+Starting web... done
+Starting streaming... done
+Starting sidekiq... done
+```
+
+For updating:
+
+```
+$ (docker-compose pull 2>&1 | grep --silent "Downloaded newer") && (docker-compose stop && docker-compose up -d)
+```