pygmystack / pygmy

the pygmy stack is a container stack for local development
MIT License
25 stars 13 forks source link

Request for example pygmy custom image integration #67

Closed fubarhouse closed 4 years ago

fubarhouse commented 4 years ago

Background

For users wanting to bring their own images to pygmy to override existing images.

Implementation

Docker

docker run -d -p 8080:8080 --volume=/var/run/docker.sock:/tmp/docker.sock --restart=always --name=amazeeio-haproxy fubarhouse/amazeeio-haproxy-8080

Variables

n/a

Volumes

n/a

fubarhouse commented 4 years ago

Description The following image was produced because ports 80 and 443 were unavailable for use in automated testing. So the HAProxy image was forked and rebuilt to expose port 8080 and to change the template configuration so that all proxy forwarding would still operate, and as a result we can perform curl http://docker.amazee.io:8080/stats for very real application testing.

https://github.com/fubarhouse/pygmy-go/blob/master/.travis.yml#L22

Services

  amazeeio-haproxy:
    Config:
      Image: fubarhouse/amazeeio-haproxy-8080
    HostConfig:
      PortBindings:
        8080/tcp:
          -
            HostPort: 8080