containers / containers/podman-compose

[feature request] extend yml to include container based podman arguments

Open
#362 0 comments 2 reactions 0 assignees View on GitHub
enhancement
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.