change things
This commit is contained in:
parent
c076383970
commit
442da7b136
3 changed files with 14 additions and 3 deletions
4
custom/proxy/90-copy-files.sh
Normal file
4
custom/proxy/90-copy-files.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
cp -r /custom/vhost.d/* /etc/nginx/vhost.d
|
||||
cp -r /custom/conf.d/* /etc/nginx/conf.d
|
|
@ -1,5 +1,8 @@
|
|||
FROM nginxproxy/nginx-proxy:latest
|
||||
|
||||
COPY config/vhost.d/* /etc/nginx/vhost.d/
|
||||
COPY config/conf.d/* /etc/nginx/conf.d/
|
||||
COPY config/nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
COPY 90-copy-files.sh /docker-entrypoint.d
|
||||
|
||||
COPY config/vhost.d /custom/vhost.d
|
||||
COPY config/conf.d /custom/conf.d
|
|
@ -17,6 +17,8 @@ services:
|
|||
- 443:443
|
||||
volumes:
|
||||
- /srv/.webcerts:/etc/nginx/certs:rw
|
||||
- /srv/proxy/config/conf.d:/etc/nginx/conf.d
|
||||
- /srv/proxy/other/vhost.d:/etc/nginx/vhost.d
|
||||
- /srv/proxy/data/html:/usr/share/nginx/html
|
||||
- /var/run/docker.sock:/tmp/docker.sock
|
||||
labels:
|
||||
|
@ -32,6 +34,8 @@ services:
|
|||
- proxy
|
||||
volumes:
|
||||
- /srv/.webcerts:/etc/nginx/certs:rw
|
||||
- /srv/proxy/config/conf.d:/etc/nginx/conf.d
|
||||
- /srv/proxy/other/vhost.d:/etc/nginx/vhost.d
|
||||
- /srv/proxy/data/html:/usr/share/nginx/html
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
environment:
|
||||
|
|
Reference in a new issue