Update docker compose service info
This commit is contained in:
parent
db9974c06b
commit
827e54ac3c
|
@ -245,6 +245,8 @@ To have Docker Compose run automatically when you reboot a machine, you can foll
|
||||||
After=docker.service
|
After=docker.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
User=docker
|
||||||
|
Group=docker
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
WorkingDirectory=/path/to/project/ckan-docker/
|
WorkingDirectory=/path/to/project/ckan-docker/
|
||||||
|
@ -256,7 +258,7 @@ To have Docker Compose run automatically when you reboot a machine, you can foll
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Replace `/path/to/project/ckan-docker/` with the path where your project's `docker-compose.yml` file is located and and check the path to the docker compose binary on execution and stop: `/bin/docker`.
|
2. Replace `/path/to/project/ckan-docker/` with the path where your project's `docker-compose.yml` file is located and and check the path to the docker compose binary on execution and stop: `/bin/docker`. Also change the `User` / `Group` to execute the service.
|
||||||
3. Load the systemd service file with the following command:
|
3. Load the systemd service file with the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
Loading…
Reference in New Issue