23 lines
577 B
Markdown
23 lines
577 B
Markdown
# 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 .
|
|
|
|
```
|