{"id":18745782,"url":"https://github.com/moshloop/docker-systemd-service","last_synced_at":"2025-11-23T14:30:23.738Z","repository":{"id":138334168,"uuid":"140401848","full_name":"moshloop/docker-systemd-service","owner":"moshloop","description":null,"archived":false,"fork":false,"pushed_at":"2018-08-30T18:34:46.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T20:26:30.611Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moshloop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-10T08:31:19.000Z","updated_at":"2018-08-30T18:34:47.000Z","dependencies_parsed_at":"2023-04-25T08:47:32.522Z","dependency_job_id":null,"html_url":"https://github.com/moshloop/docker-systemd-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fdocker-systemd-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fdocker-systemd-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fdocker-systemd-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fdocker-systemd-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moshloop","download_url":"https://codeload.github.com/moshloop/docker-systemd-service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239627234,"owners_count":19670844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T16:19:38.768Z","updated_at":"2025-11-23T14:30:23.695Z","avatar_url":"https://github.com/moshloop.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"##  moshloop.systemd_docker_service\n [![Build Status](https://travis-ci.org/moshloop/ansible-docker-systemd-service.svg?branch=master)](https://travis-ci.org/moshloop/ansible-docker-systemd-service)\n\nAn ansible role that runs a container using docker as a systemd service\n\n### Container Arguments\n\n| Argument       | Default              | Description |\n| -------------- | -------------------- | ----------- |\n| **image**        | [Required]           | Docker image to run  |\n| **service** | [Required]       | The name of the systemd service |\n| env     |                      | A dictionary of environment variables to pass through |\n| docker_args |                      | Additional arguments to the docker client e.g. `-p 8080:8080` |\n| docker_opts | | Additional options to the docker client e.g. `-H unix:///tmp/var/run/docker.sock` |\n| args |                   | Additional arguments to the container |\n| volumes |                |                                       |\n| ports |                |                                       |\n| links |                |                                       |\n\n\n### Example\n\n```yaml\n---\n- hosts: localhost\n  roles:\n    - moshloop.systemd\n  tasks:\n    - include_role: name=moshloop.docker_systemd_service\n      vars:\n      \tcontainers:\n         - image: nginx\n           service: nginx\n           env:\n             DOMAIN: localhost.com\n         - image: nginx\n           service: nginx2\n           docker_args: -p 8080:80\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoshloop%2Fdocker-systemd-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoshloop%2Fdocker-systemd-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoshloop%2Fdocker-systemd-service/lists"}