add docker-compose
This commit is contained in:
parent
fccaa2a29c
commit
2575fc5aa5
3 changed files with 28 additions and 0 deletions
20
docker-compose/default.nix
Normal file
20
docker-compose/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ dockerTools
|
||||
, cacert
|
||||
, docker-compose
|
||||
}:
|
||||
dockerTools.buildLayeredImage {
|
||||
inherit (docker-compose) name;
|
||||
|
||||
contents = [
|
||||
cacert
|
||||
docker-compose
|
||||
];
|
||||
|
||||
config = {
|
||||
Entrypoint = [ "/bin/docker-compose" ];
|
||||
Env = [
|
||||
"PATH=/bin"
|
||||
"SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue