更新部分镜像版本
This commit is contained in:
parent
00f679a0f6
commit
f084d89eab
@ -2,7 +2,7 @@ version: "3.9"
|
||||
|
||||
services:
|
||||
caddy:
|
||||
image: caddy:2.7.6-alpine
|
||||
image: caddy:2.8.4-alpine
|
||||
container_name: caddy
|
||||
hostname: caddy
|
||||
restart: always
|
||||
|
@ -2,7 +2,7 @@ version: "3.9"
|
||||
|
||||
services:
|
||||
drawio:
|
||||
image: jgraph/drawio:24.3.1
|
||||
image: jgraph/drawio:24.7.17
|
||||
container_name: drawio
|
||||
hostname: drawio
|
||||
restart: always
|
||||
@ -27,7 +27,7 @@ services:
|
||||
environment:
|
||||
- DRAWIO_SERVER_URL="drawio:8080"
|
||||
plantuml-server:
|
||||
image: plantuml/plantuml-server:v1.2024.4
|
||||
image: plantuml/plantuml-server:v1.2024.7
|
||||
container_name: plantuml-server
|
||||
restart: always
|
||||
networks:
|
||||
|
@ -2,7 +2,7 @@ version: "3.9"
|
||||
|
||||
services:
|
||||
filebrowser:
|
||||
image: filebrowser/filebrowser:v2.29.0
|
||||
image: filebrowser/filebrowser:v2.31.2
|
||||
container_name: filebrowser
|
||||
hostname: filebrowser
|
||||
restart: always
|
||||
|
@ -2,7 +2,7 @@ version: "3.9"
|
||||
|
||||
services:
|
||||
mariadb:
|
||||
image: mariadb:10.11.7
|
||||
image: mariadb:11.5.2
|
||||
container_name: mariadb
|
||||
hostname: mariadb
|
||||
restart: always
|
||||
|
@ -2,7 +2,7 @@ version: "3.9"
|
||||
|
||||
services:
|
||||
mariadb:
|
||||
image: mariadb:10.11.7
|
||||
image: mariadb:11.5.2
|
||||
container_name: mariadb
|
||||
hostname: mariadb
|
||||
restart: always
|
||||
|
@ -2,7 +2,7 @@ version: "3.9"
|
||||
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:8.0.37
|
||||
image: mysql:8.0.39
|
||||
container_name: mysql
|
||||
hostname: mysql
|
||||
restart: always
|
||||
|
@ -2,7 +2,7 @@ version: "3.9"
|
||||
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:8.0.37
|
||||
image: mysql:8.0.39
|
||||
container_name: mysql
|
||||
hostname: mysql
|
||||
restart: always
|
||||
|
@ -2,7 +2,7 @@ version: "3.9"
|
||||
|
||||
services:
|
||||
portainer:
|
||||
image: portainer/portainer-ce:2.20.2-alpine
|
||||
image: portainer/portainer-ce:2.22.0-alpine
|
||||
container_name: portainer
|
||||
hostname: portainer
|
||||
restart: always
|
||||
|
@ -2,7 +2,7 @@ version: "3.9"
|
||||
|
||||
services:
|
||||
wikijs:
|
||||
image: requarks/wiki:2.5.302
|
||||
image: requarks/wiki:2.5.304
|
||||
container_name: wikijs
|
||||
hostname: wikijs
|
||||
restart: always
|
||||
|
53
examples/xbrowsersync/compose.yaml
Normal file
53
examples/xbrowsersync/compose.yaml
Normal file
@ -0,0 +1,53 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
xbrowsersync-db:
|
||||
#image: mongo:4.4.29
|
||||
image: mongo:7.0.11
|
||||
container_name: xbrowsersync-db
|
||||
restart: always
|
||||
networks:
|
||||
- app_network
|
||||
- site_network
|
||||
volumes:
|
||||
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
|
||||
- ./db:/data/db
|
||||
- ./backup:/data/backups
|
||||
- ./conf/mongoconfig.js:/docker-entrypoint-initdb.d/mongoconfig.js
|
||||
environment:
|
||||
- "MONGO_INITDB_DATABASE=xbrowsersync"
|
||||
- "MONGO_INITDB_ROOT_USERNAME=xbrowsersync"
|
||||
- "MONGO_INITDB_ROOT_PASSWORD=12345678"
|
||||
- "XBS_DB_NAME=xbrowsersync"
|
||||
- "XBS_DB_USERNAME=xbrowsersync"
|
||||
- "XBS_DB_PASSWORD=123456"
|
||||
xbrowsersync:
|
||||
image: xbrowsersync/api:1.1.13-node20.14.0-alpine
|
||||
container_name: xbrowsersync
|
||||
restart: always
|
||||
networks:
|
||||
- app_network
|
||||
- site_network
|
||||
volumes:
|
||||
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
|
||||
#- ./conf/settings.json:/opt/xbs/1.1.13/conf/settings.json
|
||||
#- ./logs:/var/log/xBrowserSync
|
||||
- ./conf/settings.json:/usr/src/api/config/settings.json
|
||||
- ./conf/healthcheck.js:/usr/src/api/healthcheck.js
|
||||
- ./logs:/var/log/xBrowserSync
|
||||
depends_on:
|
||||
- "xbrowsersync-db"
|
||||
healthcheck:
|
||||
test: [ "CMD", "node", "/usr/src/api/healthcheck.js" ]
|
||||
interval: "1m"
|
||||
timeout: "10s"
|
||||
retries: "5"
|
||||
start_period: "30s"
|
||||
|
||||
networks:
|
||||
app_network:
|
||||
external: true
|
||||
name: app_network
|
||||
site_network:
|
||||
external: true
|
||||
name: site_network
|
44
examples/xbrowsersync/conf/healthcheck.js
Normal file
44
examples/xbrowsersync/conf/healthcheck.js
Normal file
@ -0,0 +1,44 @@
|
||||
const http = require('http');
|
||||
|
||||
const response = http.request(
|
||||
{
|
||||
host: '0.0.0.0',
|
||||
method: 'GET',
|
||||
path: '/info',
|
||||
port: 8080,
|
||||
timeout: 2000,
|
||||
},
|
||||
(res) => {
|
||||
let body = '';
|
||||
res.setEncoding('utf8');
|
||||
|
||||
res.on('data', (chunk) => {
|
||||
body += chunk;
|
||||
});
|
||||
|
||||
res.on('end', () => {
|
||||
if (res.statusCode === 200) {
|
||||
const payload = JSON.parse(body);
|
||||
switch (payload.status) {
|
||||
case 1:
|
||||
case 3:
|
||||
console.log('HEALTHCHECK: online');
|
||||
process.exit(0);
|
||||
case 2:
|
||||
default:
|
||||
console.log('HEALTHCHECK: offline');
|
||||
}
|
||||
} else {
|
||||
console.log('HEALTHCHECK: offline');
|
||||
}
|
||||
process.exit(1);
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
response.on('error', function (err) {
|
||||
console.log('HEALTHCHECK: offline');
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
response.end();
|
3
examples/xbrowsersync/conf/mongoconfig.js
Normal file
3
examples/xbrowsersync/conf/mongoconfig.js
Normal file
@ -0,0 +1,3 @@
|
||||
db.newsynclogs.createIndex( { "expiresAt": 1 }, { expireAfterSeconds: 0 } );
|
||||
db.newsynclogs.createIndex( { "ipAddress": 1 } );
|
||||
db.bookmarks.createIndex( { "lastAccessed": 1 }, { expireAfterSeconds: 21*86400 } );
|
16
examples/xbrowsersync/conf/settings.json
Normal file
16
examples/xbrowsersync/conf/settings.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"location": "JP",
|
||||
"maxSyncs": "10000",
|
||||
"maxSyncSize": "10485760",
|
||||
"db": {
|
||||
"host": "xbrowsersync-db",
|
||||
"name": "xbrowsersync",
|
||||
"username": "xbrowsersync",
|
||||
"password": "aP7xvybVU6ZdVKWkTp7NjbcYuFdH5YR6Gi3aFrvdT4kbJ3aKwFqB4GnxYyao5DgR"
|
||||
},
|
||||
"status": {
|
||||
"allowNewSyncs": "true",
|
||||
"online": "true",
|
||||
"message": "Welcome to the HTY1024 xBrowserSync service! We run the latest version of the xBrowserSync API and take database backups daily."
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user