version: '3' services: proxy: build: ./test/docker/tinyproxy ports: - "8888:8888" proxy-auth: build: ./test/docker/tinyproxy-auth ports: - "8889:8888" httpbin: image: docker.io/kennethreitz/httpbin:latest platform: linux/amd64 ports: - "8080:80" caddyhttpbin: image: docker.io/caddy:2.8.4-alpine # In GitHub Actions we want to access the files created # by Caddy. However, in Linux these end up being owned by root # because the container by default runs using the root user # and we are not root in the GH action so we cannot access them. user: "${DOCKER_USER}" volumes: # The :z mount option solves issues with SELinux. # See https://github.com/elixir-mint/mint/pull/406. - "./caddy_storage:/caddy_storage:z" - "./Caddyfile:/etc/caddy/Caddyfile:z" ports: - "8443:8443"