Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
deploy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
public
deploy
Commits
3a6e80c7
Commit
3a6e80c7
authored
Apr 28, 2024
by
蔡润涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
3fb4e4c6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
nginx-proxy.yml
nginx-proxy.yml
+41
-0
No files found.
nginx-proxy.yml
0 → 100644
View file @
3a6e80c7
version
:
'
2.4'
services
:
nginx-root
:
restart
:
always
image
:
nginx:1.26.0-alpine
container_name
:
nginx-root
ports
:
-
80:80
-
443:443
volumes
:
-
/home/deploy/nginx/conf.d:/etc/nginx/conf.d
-
/etc/nginx/vhost.d
-
/usr/share/nginx/html
-
/var/run/docker.sock:/tmp/docker.sock:ro
-
/home/deploy/nginx/certs:/etc/nginx/certs:ro
nginx-gen
:
restart
:
always
image
:
ghcr.io/ivancai/nginx-gen:2.0
container_name
:
nginx-gen
volumes_from
:
-
nginx-root
volumes
:
-
/var/run/docker.sock:/tmp/docker.sock:ro
command
:
-notify-sighup nginx-root -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
nginx-certbot
:
restart
:
always
image
:
ghcr.io/ivancai/nginx-certbot:2.0
container_name
:
nginx-certbot
environment
:
-
NGINX_DOCKER_GEN_CONTAINER=nginx-gen
-
NGINX_PROXY_CONTAINER=nginx-root
volumes_from
:
-
nginx-root
volumes
:
-
/home/deploy/nginx/certs:/etc/nginx/certs:rw
-
/var/run/docker.sock:/var/run/docker.sock:ro
networks
:
default
:
external
:
name
:
nginx-proxy
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment