Update docker compose service info

This commit is contained in:
mjanez 2023-04-17 11:34:37 +02:00 committed by GitHub
parent db9974c06b
commit 827e54ac3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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