alpine-dc-service/README.md

23 lines
577 B
Markdown
Raw Permalink Normal View History

2023-02-16 15:43:11 +01:00
# Alpine Docker compose service
## Run docker-compose services as openrc services
Copy the script init.d/dc to /etc/init.d/dc.
Each docker-compose based service $SERVICENAME must exist like so:
* /srv/docker/$SERVICENAME/docker-compose.yml.
Finally create some symbolic link :
* ln -s /etc/init.d/dockerservice.$SERVICENAME pointing to /etc/init.d/dc.
Services can now be started/stopped via e.g. /etc/init.d/dockerservice.gitea start.
## Build an Alpine package
You need to install "nfpm" (https://nfpm.goreleaser.com/)
```
nfpm pkg --packager apk --target .
```