podman-compose icon indicating copy to clipboard operation
podman-compose copied to clipboard

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

Open aanno opened this issue 4 years ago • 0 comments

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:

  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

aanno avatar Nov 20 '21 09:11 aanno