You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
2.1 KiB
81 lines
2.1 KiB
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
|