containers / containers/podman-compose
[feature request] extend yml to include container based podman arguments
- 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.**
Sometimes, I would like to modify the podman arguments of a _single_ container in my yml file. Currently, it is only possible to add podman arguments to _every_ container of a yml file (with the `--podman-run-args`). In my case, I would like to connect a single of my pod containers to an external network.
**Describe the solution you'd like**
Extend the yml container description with a new key, i.e. `podman_run_args`
Example:
```yml
web:
build: ./web
# currently _not_ honoured by podman, i.e. does not work
restart: unless-stopped
# NEWLY PROPOSED KEY
podman_run_args: --net proxy-tier
ports:
- ${SERVER_HTTP_PORT}:${SERVER_HTTP_PORT}
- ${SERVER_HTTPS_PORT}:${SERVER_HTTPS_PORT}
volumes:
- nextcloud:/var/www/html:z
- ./apps:/var/www/html/custom_apps:z
- ${SERVER_HTTPS_CERT_VOLUME}:/certs:z,ro
- ./web/snippets:/etc/nginx/snippets:z,ro
environment:
- VIRTUAL_HOST=
depends_on:
- app
# currently _not_ honoured by podman-compose, i.e. my reason for proposing `podman_run_args`
networks:
- proxy-tier
```
Contributor guide
Assessment
This issue has not been assessed yet.