新增部分示例;更新部分镜像版本
This commit is contained in:
parent
78948bc57f
commit
0b36422e96
13
examples/caddy/Caddyfile
Normal file
13
examples/caddy/Caddyfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
example.com {
|
||||||
|
root * /var/www/wordpress
|
||||||
|
encode gzip
|
||||||
|
php_fastcgi unix//run/php/php-version-fpm.sock
|
||||||
|
file_server
|
||||||
|
}
|
||||||
|
|
||||||
|
a.example.com {
|
||||||
|
reverse_proxy http://127.0.0.1:8080
|
||||||
|
log {
|
||||||
|
output file /var/log/caddy/a.example.com.log
|
||||||
|
}
|
||||||
|
}
|
44
examples/caddy/compose.yaml
Normal file
44
examples/caddy/compose.yaml
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
version: "3.9"
|
||||||
|
|
||||||
|
services:
|
||||||
|
caddy:
|
||||||
|
image: caddy:2.7.6-alpine
|
||||||
|
container_name: caddy
|
||||||
|
hostname: caddy
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- site_network
|
||||||
|
- app_network
|
||||||
|
ports:
|
||||||
|
- "443:443"
|
||||||
|
volumes:
|
||||||
|
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
|
||||||
|
- ./hosts:/etc/hosts:ro
|
||||||
|
- ./Caddyfile:/etc/caddy/Caddyfile
|
||||||
|
- ./conf/:/config/
|
||||||
|
- ./site/:/var/www/
|
||||||
|
- ./data/:/data/
|
||||||
|
- ./logs/:/var/log/caddy
|
||||||
|
- ./cert/:/var/cert/
|
||||||
|
|
||||||
|
networks:
|
||||||
|
site_network:
|
||||||
|
name: site_network
|
||||||
|
external: true
|
||||||
|
# driver: bridge
|
||||||
|
# driver_opts:
|
||||||
|
# encrypted: 'true'
|
||||||
|
# ipam:
|
||||||
|
# driver: default
|
||||||
|
# config:
|
||||||
|
# - subnet: 172.21.0.1/24
|
||||||
|
app_network:
|
||||||
|
name: app_network
|
||||||
|
external: true
|
||||||
|
# driver: bridge
|
||||||
|
# driver_opts:
|
||||||
|
# encrypted: 'true'
|
||||||
|
# ipam:
|
||||||
|
# driver: default
|
||||||
|
# config:
|
||||||
|
# - subnet: 172.21.0.1/24
|
22
examples/caddy/hosts
Normal file
22
examples/caddy/hosts
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
#
|
||||||
|
# hosts This file describes a number of hostname-to-address
|
||||||
|
# mappings for the TCP/IP subsystem. It is mostly
|
||||||
|
# used at boot time, when no name servers are running.
|
||||||
|
# On small systems, this file can be used instead of a
|
||||||
|
# "named" name server.
|
||||||
|
# Syntax:
|
||||||
|
#
|
||||||
|
# IP-Address Full-Qualified-Hostname Short-Hostname
|
||||||
|
#
|
||||||
|
|
||||||
|
127.0.0.1 localhost
|
||||||
|
|
||||||
|
# special IPv6 addresses
|
||||||
|
::1 localhost ipv6-localhost ipv6-loopback
|
||||||
|
|
||||||
|
fe00::0 ipv6-localnet
|
||||||
|
|
||||||
|
ff00::0 ipv6-mcastprefix
|
||||||
|
ff02::1 ipv6-allnodes
|
||||||
|
ff02::2 ipv6-allrouters
|
||||||
|
ff02::3 ipv6-allhosts
|
49
examples/drawio/compose.yaml
Normal file
49
examples/drawio/compose.yaml
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
version: "3.9"
|
||||||
|
|
||||||
|
services:
|
||||||
|
drawio:
|
||||||
|
image: jgraph/drawio:24.2.7
|
||||||
|
container_name: drawio
|
||||||
|
hostname: drawio
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- app_network
|
||||||
|
volumes:
|
||||||
|
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
|
||||||
|
environment:
|
||||||
|
- DRAWIO_SELF_CONTAINED=1
|
||||||
|
- DRAWIO_BASE_URL="drawio:8080"
|
||||||
|
- EXPORT_URL="export-server:8000"
|
||||||
|
- PLANTUML_URL="plantuml-server:8080"
|
||||||
|
export-server:
|
||||||
|
image: jgraph/export-server:latest
|
||||||
|
container_name: export-server
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- app_network
|
||||||
|
volumes:
|
||||||
|
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
|
||||||
|
- ./fonts:/usr/share/fonts/drawio
|
||||||
|
environment:
|
||||||
|
- DRAWIO_SERVER_URL="drawio:8080"
|
||||||
|
plantuml-server:
|
||||||
|
image: plantuml/plantuml-server:v1.2024.3
|
||||||
|
container_name: plantuml-server
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- app_network
|
||||||
|
volumes:
|
||||||
|
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
|
||||||
|
- ./fonts:/usr/share/fonts/drawio
|
||||||
|
|
||||||
|
networks:
|
||||||
|
app_network:
|
||||||
|
name: app_network
|
||||||
|
external: true
|
||||||
|
# driver: bridge
|
||||||
|
# driver_opts:
|
||||||
|
# encrypted: 'true'
|
||||||
|
# ipam:
|
||||||
|
# driver: default
|
||||||
|
# config:
|
||||||
|
# - subnet: 172.21.0.1/24
|
29
examples/filebrowser/compose.yaml
Normal file
29
examples/filebrowser/compose.yaml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
version: "3.9"
|
||||||
|
|
||||||
|
services:
|
||||||
|
filebrowser:
|
||||||
|
image: filebrowser/filebrowser:v2.28.0
|
||||||
|
container_name: filebrowser
|
||||||
|
hostname: filebrowser
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- app_network
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
volumes:
|
||||||
|
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
|
||||||
|
- ./data:/srv
|
||||||
|
- ./db/filebrowser.db:/database/filebrowser.db
|
||||||
|
- ./conf/.filebrowser.json:/.filebrowser.json
|
||||||
|
|
||||||
|
networks:
|
||||||
|
app_network:
|
||||||
|
name: app_network
|
||||||
|
external: true
|
||||||
|
# driver: bridge
|
||||||
|
# driver_opts:
|
||||||
|
# encrypted: 'true'
|
||||||
|
# ipam:
|
||||||
|
# driver: default
|
||||||
|
# config:
|
||||||
|
# - subnet: 172.21.0.1/24
|
8
examples/filebrowser/conf/.filebrowser.json
Normal file
8
examples/filebrowser/conf/.filebrowser.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"port": 80,
|
||||||
|
"baseURL": "",
|
||||||
|
"address": "",
|
||||||
|
"log": "stdout",
|
||||||
|
"database": "/database/filebrowser.db",
|
||||||
|
"root": "/srv"
|
||||||
|
}
|
0
examples/filebrowser/db/filebrowser.db
Normal file
0
examples/filebrowser/db/filebrowser.db
Normal file
@ -2,7 +2,7 @@ version: "3.9"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
mariadb:
|
mariadb:
|
||||||
image: mariadb:10.11.6
|
image: mariadb:10.11.7
|
||||||
container_name: mariadb
|
container_name: mariadb
|
||||||
hostname: mariadb
|
hostname: mariadb
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -2,7 +2,7 @@ version: "3.9"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
portainer:
|
portainer:
|
||||||
image: portainer/portainer-ce:2.19.4-alpine
|
image: portainer/portainer-ce:2.20.1-alpine
|
||||||
container_name: portainer
|
container_name: portainer
|
||||||
hostname: portainer
|
hostname: portainer
|
||||||
restart: always
|
restart: always
|
||||||
|
Loading…
Reference in New Issue
Block a user