-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
34 lines (32 loc) · 1.11 KB
/
docker-compose.yml
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
version: '3.5'
services:
nginx:
container_name: docker-proxy-nginx
image: philippev/docker-proxy-nginx:${NGINX_VERSION:-latest}
restart: unless-stopped
ports:
- ${HTTP_PORT:-80}:80
- ${HTTPS_PORT:-443}:443
volumes:
- virtual_host:/etc/nginx/conf.d
- homepage:/var/www/homepage
- certificates:/etc/nginx/certificates:ro
proxy:
container_name: docker-proxy-cli
image: philippev/docker-proxy-${PROXY_PROVIDER:-php}:${PROXY_PROVIDER_VERSION:-latest}
restart: unless-stopped
environment:
HTTP_PORT: ${HTTP_PORT:-80}
HTTPS_PORT: ${HTTPS_PORT:-443}
VIRTUAL_HOST_DIRECTORY: /etc/nginx/conf.d
HOMEPAGE_DIRECTORY: /var/www/homepage
CERTIFICATE_DIRECTORY: /etc/nginx/certificates
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- virtual_host:/etc/nginx/conf.d
- homepage:/var/www/homepage
- certificates:/etc/nginx/certificates
volumes:
virtual_host:
homepage:
certificates: