Former-commit-id: 177f14a25f399882b6f663864c3108abc3865ba6 Former-commit-id: 8294e17140b337f2beaa9ce51b42a82899f6754d1.0
parent
f5e4931e64
commit
2ddb9f4d48
@ -0,0 +1,30 @@
|
||||
user root;
|
||||
worker_processes 4;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name default;
|
||||
absolute_redirect off;
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root html;
|
||||
}
|
||||
}
|
||||
include conf.d/*.conf;
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
version: "3.8"
|
||||
networks:
|
||||
default:
|
||||
name: mynetwork
|
||||
external: true
|
||||
services:
|
||||
nginx:
|
||||
image: nginx:1.20.0
|
||||
restart: always
|
||||
environment:
|
||||
TZ: "Asia/Shanghai"
|
||||
ports:
|
||||
- 9992:9092
|
||||
volumes:
|
||||
- ./conf/nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./log/nginx:/var/log/nginx
|
||||
networks:
|
||||
default:
|
||||
ipv4_address: 172.172.0.10
|
@ -0,0 +1,2 @@
|
||||
TZ=Asia/Shanghai
|
||||
IP=10.10.14.176
|
@ -0,0 +1,3 @@
|
||||
.vscode
|
||||
log
|
||||
data
|
@ -0,0 +1,12 @@
|
||||
// This is the primary configuration file for the BIND DNS server named.
|
||||
//
|
||||
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
|
||||
// structure of BIND configuration files in Debian, *BEFORE* you customize
|
||||
// this configuration file.
|
||||
//
|
||||
// If you are just adding zones, please do that in /etc/bind/named.conf.local
|
||||
|
||||
include "/etc/bind/named.conf.options";
|
||||
include "/etc/bind/named.conf.local";
|
||||
include "/etc/bind/named.conf.default-zones";
|
||||
allow-query-cache { any; };
|
@ -0,0 +1,16 @@
|
||||
#dnsmasq config, for a complete example, see:
|
||||
# http://oss.segetech.com/intra/srv/dnsmasq.conf
|
||||
#log all dns queries
|
||||
log-queries
|
||||
#dont use hosts nameservers
|
||||
no-resolv
|
||||
#use cloudflare as default nameservers, prefer 1^4
|
||||
server=114.114.114.114
|
||||
server=8.8.8.8
|
||||
strict-order
|
||||
#serve all .company queries using a specific nameserver
|
||||
server=/lan/10.10.14.176
|
||||
#explicitly define host-ip mappings
|
||||
address=/portainer.lan/10.10.14.176
|
||||
address=/netdata.lan/10.10.14.176
|
||||
address=/gitlab.lan/10.10.14.176
|
@ -0,0 +1,8 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name gitlab.lan;
|
||||
|
||||
location / {
|
||||
proxy_pass http://gitlab:9080;
|
||||
}
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name netdata.lan;
|
||||
|
||||
location / {
|
||||
proxy_pass http://netdata:19999;
|
||||
}
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name portainer.lan;
|
||||
|
||||
location / {
|
||||
proxy_pass http://portainer:9000;
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
user root;
|
||||
worker_processes 4;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name default;
|
||||
absolute_redirect off;
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root html;
|
||||
}
|
||||
}
|
||||
include conf.d/*.conf;
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
version: "3.8"
|
||||
networks:
|
||||
default:
|
||||
name: mynetwork
|
||||
driver: bridge
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.172.0.0/24
|
||||
services:
|
||||
portainer:
|
||||
image: portainer/portainer-ce:2.5.0
|
||||
restart: always
|
||||
ports:
|
||||
- 8000:8000
|
||||
- 9000:9000
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./data/portainer:/data
|
||||
networks:
|
||||
default:
|
||||
ipv4_address: 172.172.0.2
|
||||
netdata:
|
||||
image: netdata/netdata:v1.30.0
|
||||
restart: always
|
||||
ports:
|
||||
- 19999:19999
|
||||
cap_add:
|
||||
- SYS_PTRACE
|
||||
security_opt:
|
||||
- apparmor:unconfined
|
||||
volumes:
|
||||
- /etc/passwd:/host/etc/passwd:ro
|
||||
- /etc/group:/host/etc/group:ro
|
||||
- /proc:/host/proc:ro
|
||||
- /sys:/host/sys:ro
|
||||
- /etc/os-release:/host/etc/os-release:ro
|
||||
networks:
|
||||
default:
|
||||
ipv4_address: 172.172.0.3
|
||||
#systemctl stop systemd-resolved
|
||||
#systemctl disable systemd-resolved
|
||||
# bind:
|
||||
# image: sameersbn/bind:9.16.1-20200524
|
||||
# restart: always
|
||||
# environment:
|
||||
# - ROOT_PASSWORD=dsideal
|
||||
# ports:
|
||||
# - 53:53/tcp
|
||||
# - 53:53/udp
|
||||
# - 10000:10000/tcp
|
||||
# volumes:
|
||||
# - ./data/bind:/data
|
||||
# networks:
|
||||
# default:
|
||||
# ipv4_address: 172.172.0.4
|
||||
dnsmasq:
|
||||
image: jpillora/dnsmasq:1.1.0
|
||||
restart: always
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
ports:
|
||||
- 53:53/udp
|
||||
- 10000:8080
|
||||
volumes:
|
||||
- ./conf/dnsmasq/dnsmasq.conf:/etc/dnsmasq.conf
|
||||
nginx:
|
||||
image: nginx:1.20.0
|
||||
#restart: always
|
||||
environment:
|
||||
TZ: "Asia/Shanghai"
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
volumes:
|
||||
#- ./conf/nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./conf/nginx/conf.d:/etc/nginx/conf.d
|
||||
- ./log/nginx:/var/log/nginx
|
||||
networks:
|
||||
default:
|
||||
ipv4_address: 172.172.0.10
|
@ -0,0 +1 @@
|
||||
docker-compose up --remove-orphans -d
|
@ -0,0 +1 @@
|
||||
docker-compose down --remove-orphans
|
Loading…
Reference in new issue