containers / containers/podman-compose
systemd files for pods with rootless containers
- Dominant language
- Python
- Stars
- 6.2k
- Forks
- 622
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
I've read through #13368, and was able to generate pods and systemd files for single container pods. Didn't see support for podman-compose to generate systemd files for ~/.config/systemd/user/. I used podman generate systemd instead but had to manually add After and BindsTo to the containers services so stopping the pod service would stop the container. This works including the pods being started by systemd when the virtual machine is restarted.
**Describe the solution you'd like**
What is the recommended procedure to generate systemd files for ~/.config/systemd/user/?
Example docker-compose:
```
version: "3.8"
services:
proxy:
image: custom_apache2_proxy:latest
ports:
- 8443:8443
environment:
- HTTPD_SSL_PORT=8443
volumes:
- ./conf.proxy.d:/etc/httpd/conf.proxy.d
- ./private:/etc/pki/tls/private
networks:
- cloud-pricing-api_cloud_pricing_api
networks:
cloud-pricing-api_cloud_pricing_api:
external: true
```
**Describe alternatives you've considered**
**Additional context**
podman version = 4.2.0
podman-compose version = 1.0.6
OS = RHEL 8.7
Contributor guide
Assessment
This issue has not been assessed yet.