~qeef/damn-deploy

83cb76bea0cc4dd41eb78f432b16794940e55176 — Jiri Vlasak 3 months ago 9f081ee
Update readme with damn-deploy
1 files changed, 9 insertions(+), 9 deletions(-)

M README.md
M README.md => README.md +9 -9
@@ 24,8 24,8 @@ server.
Then, you need to clone the damn deploy repository:

```
git clone https://gitlab.com/damn-project/damn_deploy.git
cd damn_deploy
git clone https://gitlab.com/damn-project/damn-deploy.git
cd damn-deploy
```

The most common usecase is *autostart server and clients*. The following


@@ 122,7 122,7 @@ In addition to *Server setup*, you may want to run a chat server.
Autostart with `systemd`
------------------------

I assume that the damn deploy repository is cloned to `/root/damn_deploy/`.
I assume that the damn deploy repository is cloned to `/root/damn-deploy/`.

1. Create systemd unit for `docker-compose`:



@@ 134,16 134,16 @@ I assume that the damn deploy repository is cloned to `/root/damn_deploy/`.

   [Service]
   Type=simple
   WorkingDirectory=/root/damn_deploy
   ExecStart=/usr/bin/docker-compose -f /root/damn_deploy/server.yml -f /root/damn_deploy/clients.yml up
   ExecStop=/usr/bin/docker-compose -f /root/damn_deploy/server.yml -f /root/damn_deploy/clients.yml down
   WorkingDirectory=/root/damn-deploy
   ExecStart=/usr/bin/docker-compose -f /root/damn-deploy/server.yml -f /root/damn-deploy/clients.yml up
   ExecStop=/usr/bin/docker-compose -f /root/damn-deploy/server.yml -f /root/damn-deploy/clients.yml down

   [Install]
   WantedBy=multi-user.target
   EOF
   ```

   Remove ` -f /root/damn_deploy/clients.yml` when running server only.
   Remove ` -f /root/damn-deploy/clients.yml` when running server only.

2. Enable and run damn service:



@@ 283,8 283,8 @@ hours.
   Description=Run damn upkeep

   [Service]
   WorkingDirectory=/root/damn_deploy
   ExecStart=/usr/bin/docker-compose -f /root/damn_deploy/server.yml run --rm upkeep
   WorkingDirectory=/root/damn-deploy
   ExecStart=/usr/bin/docker-compose -f /root/damn-deploy/server.yml run --rm upkeep
   EOF
   cat << EOF >> /etc/systemd/system/damn_upkeep.timer
   [Unit]