ctr-proxy-1.service.j2 900 B

1234567891011121314151617181920212223242526272829303132
  1. [Unit]
  2. Description=Container proxy-1
  3. [Service]
  4. Type=simple
  5. TimeoutStartSec=5m
  6. Slice=container-small.slice
  7. ExecStartPre=-/usr/bin/docker rm "proxy-1"
  8. ExecStart=/usr/bin/docker run --rm --name "proxy-1" \
  9. --volumes-from proxy-shared-data-1 \
  10. -a stdout -a stderr -p 80:80 -p 443:443 -p 4999:4999 \
  11. "docker-registry.ops.rhcloud.com/oso-v2-proxy:{{ oo_env }}"
  12. ExecReload=-/usr/bin/docker stop "proxy-1"
  13. ExecReload=-/usr/bin/docker rm "proxy-1"
  14. ExecStop=-/usr/bin/docker stop "proxy-1"
  15. [Install]
  16. WantedBy=container.target
  17. # Container information
  18. X-ContainerId=proxy-1
  19. X-ContainerImage=docker-registry.ops.rhcloud.com/oso-v2-proxy:{{ oo_env }}
  20. X-ContainerUserId=
  21. X-ContainerRequestId=LwiWtYWaAvSavH6Ze53QJg
  22. X-ContainerType=simple
  23. X-PortMapping=80:80
  24. X-PortMapping=443:443
  25. X-PortMapping=4999:4999