Alpine Docker Compose Service
Go to file
2023-02-16 15:45:04 +01:00
init.d feat(dc): adding dc service script 2023-02-16 15:36:04 +01:00
services/jslave feat(service): adding jenkins slave service 2023-02-16 15:36:23 +01:00
nfpm.yaml feat(pkg): adding nfpm packaging 2023-02-16 15:43:11 +01:00
README.md fix(doc): adding doc for packaging command 2023-02-16 15:45:04 +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 .