-
Notifications
You must be signed in to change notification settings - Fork 120
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (33 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
37 lines (33 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: '3'
services:
proxy:
build: ./test/docker/tinyproxy
ports:
- "${TINYPROXY_PORT:-8888}:8888"
proxy-auth:
build: ./test/docker/tinyproxy-auth
ports:
- "${TINYPROXY_AUTH_PORT:-8889}:8888"
httpbin:
image: docker.io/kennethreitz/httpbin:latest
platform: linux/amd64
ports:
- "${HTTPBIN_HTTP_PORT:-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}"
environment:
- HTTPBIN_HTTP_PORT=${HTTPBIN_HTTP_PORT:-8080}
- HTTPBIN_HTTPS_PORT=${HTTPBIN_HTTPS_PORT:-8443}
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:
- "${HTTPBIN_HTTPS_PORT:-8443}:${HTTPBIN_HTTPS_PORT:-8443}"
- "${HTTPBIN_H2C_PORT:-8081}:${HTTPBIN_HTTP_PORT:-8080}"