使用 Docker Compose 管理多个容器

dst-server

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
version: "3.5"

services:
  dst:
    image: jamesits/dst-server:latest
    container_name: dst
    restart: "on-failure:5"
    ports:
      - "10999-11000:10999-11000/udp"
      - "12346-12347:12346-12347/udp"
    volumes:
      - /home/dst/.klei/DoNotStarveTogether:/data
#      - /home/dst/supervisor.conf:/etc/supervisor/supervisor.conf:ro
    stop_grace_period: 6m

serverstatus + nginx-proxy-manager

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
version: '3'
services:

  npm:
    image: jc21/nginx-proxy-manager:latest
    container_name: npm
    restart: unless-stopped
    ports:
      - 80:80
      - 81:81
      - 443:443
    volumes:
      - /home/npm/data:/data
      - /home/npm/letsencrypt:/etc/letsencrypt

  ss:
    image: cppla/serverstatus:latest
    container_name: ss
    restart: unless-stopped
    volumes:
      - /home/ss/config.json:/ServerStatus/server/config.json
      - /home/ss/json:/usr/share/nginx/html/json
    ports:
      - 35601:35601

networks:
  default:
    name: status

qflood + h5ai + nginx-proxy-manager

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: '3'
services:

  npm:
    image: jc21/nginx-proxy-manager:latest
    container_name: npm
    restart: unless-stopped
    ports:
      - 80:80
      - 81:81
      - 443:443
    volumes:
      - /home/npm/data:/data
      - /home/npm/letsencrypt:/etc/letsencrypt

  qflood:
    image: cr.hotio.dev/hotio/qflood:latest
    container_name: qflood
    restart: unless-stopped
    environment:
      - PUID=1000
      - PGID=1000
      - UMASK=002
      - TZ=Asia/Shanghai
      - FLOOD_AUTH=true
    volumes:
      - /home/qb:/config
      - /PT/Downloads:/app/qBittorrent/downloads
    ports:
      - 36018:36018
#      - 8080:8080
#      - 3000:3000

  h5ai:
    image: awesometic/h5ai:latest
    container_name: h5ai
    environment:
      - PUID=1001
      - PGID=1001
      - TZ=Asia/Shanghai
    volumes:
      - /PT:/h5ai
      - /home/h5ai:/config
#    ports:
#      - 80:80

networks:
  default:
    external:
      name: pt
comments powered by Disqus
Built with Hugo
主题 StackJimmy 设计