本帖最后由 Huimo 于 2024-10-14 02:42 编辑
第一个问题就是 docker-compose 停止容器时报 137 异常代码。网页界面查看容器日志都是正常的, 终端查看详细信息也没有报 OOM。环境是物理机 24G 内存。云服务器使用相同配置部署结束时没发现这问题。
第二个就是重启系统后哪怕容器正常启动了 docker-compose 配置里设置的固定地址选项不生效,依旧是根据容器启动顺序分配的地址。必须全部重建后才能再次固定地址。同样在云服务器没法复现。
FRPC
services:
frpc:
image: snowdreamtech/frpc:latest
container_name: frpc
volumes:
- /vol1/1000/docker/frpc/data:/etc/frp:ro
networks:
omonet:
ipv4_address: 172.20.0.2
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
omonet:
external: true
NPM
services:
nginxpm:
image: 'chishin/nginx-proxy-manager-zh:2.11.3'
container_name: npm
restart: always
networks:
omonet:
ipv4_address: 172.20.0.3
ports:
- "80:80"
- "443:443"
volumes:
- "/vol1/1000/docker/npm/data:/data"
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
omonet:
external: true
NAVIDROME
services:
navidrome:
container_name: navidrome
image: de**/navidrome:latest
networks:
omonet:
ipv4_address: 172.20.0.4
restart: always
environment:
ND_SCANSCHEDULE: 1m
ND_LASTFM_ENABLED: "false"
ND_LASTFM_APIKEY: ""
ND_LASTFM_SECRET: ""
ND_SPOTIFY_ID: ""
ND_SPOTIFY_SECRET: ""
ND_LASTFM_LANGUAGE: zh
ND_DEFAULTLANGUAGE: zh
ND_LOGLEVEL: info
ND_SESSIONTIMEOUT: 24h
ND_ENABLEDOWNLOADS: "false"
ND_ENABLEFAVOURITES: "true"
ND_ENABLESHARING: "false"
ND_ENABLESTARRATING: "true"
ND_BASEURL: ""
ND_ENABLETRANSCODINGCONFIG: "true"
ND_TRANSCODINGCACHESIZE: "4000M"
ND_IMAGECACHESIZE: "1000M"
volumes:
- "/vol1/1000/docker/navidrome/data:/data"
- "/vol2/1000/files/music:/music:ro"
networks:
omonet:
external: true |