diff --git a/cn.yimian.xyz/docker-compose.yml b/cn.yimian.xyz/docker-compose.yml new file mode 100644 index 0000000..2354316 --- /dev/null +++ b/cn.yimian.xyz/docker-compose.yml @@ -0,0 +1,264 @@ +version: '3' +services: + +# system-level services +#-------------------------------- + nginx: + image: iotcat/ushio-nginx + container_name: nginx + restart: always + ports: + - "80:80" + - "443:443" + volumes: + - "/mnt/etc/cn.yimian.xyz/nginx/:/etc/nginx/" + - "/mnt/:/mnt/" + - "/var/log/nginx/:/var/log/nginx/" + - "/home/www/:/home/www/" + #network_mode: "host" + depends_on: + - oneindex + - php-fpm + - frps + - session + - acg.watch-api + - serverstatus + - ushio-win-server + - danmaku-api + - coro-api + - todo-ddl-api + - upload-api + networks: + - default + - php_net + - frp_net + + dns: + image: strm/dnsmasq + restart: always + volumes: + - /mnt/config/dnsmasq/dnsmasq.conf:/etc/dnsmasq.conf + - /mnt/config/dnsmasq/dnsmasq.d/:/etc/dnsmasq.d/ + - /mnt/config/dnsmasq/hosts.conf:/etc/hosts.conf + ports: + - "53:53/udp" + - "53:53/tcp" + cap_add: + - NET_ADMIN + networks: + - dns_net + +# Database +#---------------------------------- + redis: + image: redis + container_name: redis + restart: always + volumes: + - "/tmp/redis/data/:/data/" + - "/mnt/config/redis/redis.conf:/usr/local/etc/redis/redis.conf" + command: redis-server /usr/local/etc/redis/redis.conf + networks: + - redis_net + mongo: + image: mongo + container_name: mongo + restart: always + volumes: + - "/var/mongo:/data/db" + networks: + - mongo_net + + +# app-level services +# -------------------------------------- + php-fpm: + container_name: php-fpm + image: crunchgeek/php-fpm:7.3 + restart: always + volumes: + - "/home/:/home/" + - "/mnt/:/mnt/" + networks: + - php_net + - redis_net + frps: + image: snowdreamtech/frps + container_name: frps + restart: always + volumes: + - "/mnt/config/frp/frps.ini:/etc/frp/frps.ini" + ports: + - "4480:4480" + - "4443:4443" + - "4477:4477" + - "4400-4440:4400-4440" + networks: + - frp_net + emqx: + image: emqx/emqx + container_name: emqx + restart: always + ports: + - "1883:1883" + - "8083:8083" + - "8883:8883" + - "8084:8084" + - "18083:18083" + networks: + - mqtt_net + monitor: + #build: https://github.com/iotcat/ushio-monitor.git + image: iotcat/ushio-monitor + container_name: monitor + restart: always + command: USER=cn.yimian.xyz + network_mode: "host" + + + ssl: + #build: https://github.com/iotcat/ushio-ssl.git + image: iotcat/ushio-ssl + container_name: ssl + restart: always + #deploy: + # restart_policy: + # delay: 86400s + volumes: + - "/mnt/config/acme.sh/:/root/.acme.sh/" + - "/mnt/config/ssl/:/mnt/config/ssl/" + +# common apps +# ------------------------------------- + oneindex: + image: iotcat/oneindex + container_name: oneindex + restart: always + volumes: + - "/mnt/config/oneindex/:/var/www/html/config/" + healthcheck: + test: /bin/bash /healthcheck.sh + interval: 1m + timeout: 10s + retries: 3 + + session: + #build: https://github.com/iotcat/ushio-session.git + image: iotcat/ushio-session + container_name: session + restart: always + networks: + - default + - redis_net + volumes: + - "/mnt/config/dbKeys/auth.js:/mnt/config/dbKeys/auth.js" + acg.watch-api: + #build: https://github.com/iotcat/acg.watch-api.git + image: iotcat/acg.watch-api + container_name: acg.watch-api + restart: always + volumes: + - "/mnt/cache/video/:/mnt/cache/video/" + + + + +# local apps +# --------------------------------------- + serverstatus: + image: iotcat/ushio-serverstatus + container_name: serverstatus + restart: always + volumes: + - "/mnt/config/serverstatus/config.json:/ServerStatus/server/config.json" + ports: + - "35601:35601" + ushio-win-server: + #build: https://github.com/iotcat/ushio-win-server.git + image: iotcat/ushio-win-server + container_name: ushio-win-server + restart: always + kms: + #build: https://github.com/iotcat/kms-dockcer.git + image: iotcat/kms + container_name: kms + restart: always + ports: + - "1688:1688" + bingimgupdate-opt: + #build: https://github.com/iotcat/bingUpdateImg-opt.git + image: iotcat/bingimgupdate-opt + container_name: bingimgupdate-opt + restart: always + volumes: + - "/mnt/config/token/huaweicloud/:/mnt/config/token/huaweicloud/" + - "/tmp/:/tmp/" + danmaku-api: + #build: https://github.com/iotcat/danmaku-api.git + image: iotcat/danmaku-api + container_name: danmaku-api + restart: always + depends_on: + - redis + - mongo + networks: + - default + - redis_net + - mongo_net + environment: + REDIS_HOST: "redis" + REDIS_PORT: 6379 + MONGO_HOST: "mongo" + MONGO_PORT: 27017 + MONGO_DATABASE: "danmaku" + volumes: + - /var/log/danmaku-api/app:/usr/src/app/logs + - /var/log/danmaku-api/pm2:/root/.pm2/logs + coro-api: + #build: https://github.com/iotcat/coro-api.git + image: iotcat/coro-api + container_name: coro-api + restart: always + todo-ddl-api: + #build: https://github.com/iotcat/todo-ddl-api.git + image: iotcat/todo-ddl-api + container_name: todo-ddl-api + restart: always + volumes: + - "/mnt/var/todo-ddl/:/mnt/var/todo-ddl/" + upload-api: + #build: https://github.com/IoTcat/upload-api.git + image: iotcat/upload-api + container_name: upload-api + restart: always + volumes: + - "/mnt/config/token/huaweicloud/:/mnt/config/token/huaweicloud/" + tmpfs: + - /tmp + + mksec: + #build: https://github.com/iotcat/sentence-generator.git + image: iotcat/mksec + container_name: mksec + restart: always + volumes: + - "/mnt/var/mksec/data/:/src/data/" + + + +# networks setting +# ------------------------------------ +networks: + default: + + dns_net: + + redis_net: + + mongo_net: + + php_net: + + frp_net: + + mqtt_net: diff --git a/cn2.yimian.xyz/docker-compose.yml b/cn2.yimian.xyz/docker-compose.yml new file mode 100644 index 0000000..82e7c9d --- /dev/null +++ b/cn2.yimian.xyz/docker-compose.yml @@ -0,0 +1,164 @@ +version: '3' +services: + +# system-level services +#-------------------------------- + nginx: + image: iotcat/ushio-nginx + container_name: nginx + restart: always + ports: + - "80:80" + - "443:443" + volumes: + - "/mnt/etc/cn2.yimian.xyz/nginx/:/etc/nginx/" + - "/mnt/:/mnt/" + - "/var/log/nginx/:/var/log/nginx/" + - "/home/www/:/home/www/" + #network_mode: "host" + depends_on: + - oneindex + - php-fpm + - frps + - session + - acg.watch-api + networks: + - default + - php_net + - frp_net + + dns: + image: strm/dnsmasq + restart: always + volumes: + - /mnt/config/dnsmasq/dnsmasq.conf:/etc/dnsmasq.conf + - /mnt/config/dnsmasq/dnsmasq.d/:/etc/dnsmasq.d/ + - /mnt/config/dnsmasq/hosts.conf:/etc/hosts.conf + ports: + - "53:53/udp" + - "53:53/tcp" + cap_add: + - NET_ADMIN + networks: + - dns_net + +# Database +#---------------------------------- + redis: + image: redis + container_name: redis + restart: always + volumes: + - "/tmp/redis/data/:/data/" + networks: + - redis_net + mongo: + image: mongo + container_name: mongo + restart: always + volumes: + - "/var/mongo:/data/db" + networks: + - mongo_net + + +# app-level services +# -------------------------------------- + php-fpm: + container_name: php-fpm + image: crunchgeek/php-fpm:7.3 + restart: always + volumes: + - "/home/:/home/" + - "/mnt/:/mnt/" + networks: + - php_net + frps: + image: snowdreamtech/frps + container_name: frps + restart: always + volumes: + - "/mnt/config/frp/frps.ini:/etc/frp/frps.ini" + ports: + - "4480:4480" + - "4443:4443" + - "4477:4477" + - "4400-4440:4400-4440" + networks: + - frp_net + emqx: + image: emqx/emqx + container_name: emqx + restart: always + ports: + - "1883:1883" + - "8083:8083" + - "8883:8883" + - "8084:8084" + - "18083:18083" + networks: + - mqtt_net + monitor: + #build: https://github.com/iotcat/ushio-monitor.git + image: iotcat/ushio-monitor + container_name: monitor + restart: always + command: USER=cn2.yimian.xyz + network_mode: "host" + + +# common apps +# ------------------------------------- + oneindex: + image: iotcat/oneindex + container_name: oneindex + restart: always + volumes: + - "/mnt/config/oneindex/:/var/www/html/config/" + healthcheck: + test: /bin/bash /healthcheck.sh + interval: 1m + timeout: 10s + retries: 3 + + session: + #build: https://github.com/iotcat/ushio-session.git + image: iotcat/ushio-session + container_name: session + restart: always + networks: + - default + - redis_net + volumes: + - "/mnt/config/dbKeys/auth.js:/mnt/config/dbKeys/auth.js" + acg.watch-api: + #build: https://github.com/iotcat/acg.watch-api.git + image: iotcat/acg.watch-api + container_name: acg.watch-api + restart: always + volumes: + - "/mnt/cache/video/:/mnt/cache/video/" + + + + +# local apps +# --------------------------------------- + + +# networks setting +# ------------------------------------ +networks: + default: + + dns_net: + + redis_net: + + mongo_net: + + php_net: + + frp_net: + + mqtt_net: diff --git a/home.yimian.xyz/docker-compose.yml b/home.yimian.xyz/docker-compose.yml new file mode 100644 index 0000000..599e2ed --- /dev/null +++ b/home.yimian.xyz/docker-compose.yml @@ -0,0 +1,79 @@ +version: '3' +services: + +# system-level services +#-------------------------------- + + + nginx: + image: iotcat/ushio-nginx + container_name: nginx + restart: always + ports: + - "80:80" + - "443:443" + volumes: + - "/mnt/etc/home.yimian.xyz/nginx/:/etc/nginx/" + - "/mnt/:/mnt/" + - "/var/log/nginx/:/var/log/nginx/" + - "/home/:/home/" + #network_mode: "host" + #command: sh /ip.sh & nginx -g daemon off; + depends_on: + - php-fpm + - v2ray + + + + + + +# Database +#---------------------------------- + +# app-level services +# -------------------------------------- + monitor: + #build: https://github.com/iotcat/ushio-monitor.git + image: iotcat/ushio-monitor + container_name: monitor + restart: always + command: USER=home.yimian.xyz + network_mode: "host" + + php-fpm: + container_name: php-fpm + image: crunchgeek/php-fpm:7.3 + restart: always + volumes: + - "/home/:/home/" + - "/mnt/:/mnt/" + +# common apps +# ------------------------------------- + + + + +# local apps +# --------------------------------------- + + + + + v2ray: + image: v2ray/official + container_name: v2ray + restart: always + volumes: + - "/mnt/config/v2ray/config.json.china:/etc/v2ray/config.json" + - "/var/log/v2ray/:/var/log/v2ray/" + + + + +# networks setting +# ------------------------------------ +networks: + default: + diff --git a/jp.yimian.xyz/docker-compose.yml b/jp.yimian.xyz/docker-compose.yml new file mode 100644 index 0000000..a801180 --- /dev/null +++ b/jp.yimian.xyz/docker-compose.yml @@ -0,0 +1,55 @@ +version: '3' +services: + nginx: + image: iotcat/ushio-nginx + container_name: nginx + restart: always + ports: + - "80:80" + - "443:443" + volumes: + - "../../etc/jp.yimian.xyz/nginx/:/etc/nginx/" + - "/var/log/nginx/:/var/log/nginx/" + - "../../html/:/html/" + networks: + - default + - inner + redis: + image: redis + container_name: redis + restart: always + networks: + - inner + emqx: + image: emqx/emqx + container_name: emqx + restart: always + ports: + - "1883:1883" + - "8083:8083" + - "8883:8883" + - "8084:8084" + - "18083:18083" + networks: + - inner + - default + blog: + image: yangxuan8282/typecho + container_name: blog + restart: always +# ports: +# - "80:80" + volumes: + - "../../html/blog/:/var/www/html/" + tmpfs: + - /tmp + depends_on: + - nginx + networks: +# - inner + - default +networks: + default: + + inner: + diff --git a/uk.yimian.xyz/docker-compose.yml b/uk.yimian.xyz/docker-compose.yml new file mode 100644 index 0000000..4d0bb93 --- /dev/null +++ b/uk.yimian.xyz/docker-compose.yml @@ -0,0 +1,235 @@ +version: '3' +services: + +# system-level services +#-------------------------------- + nginx: + image: iotcat/ushio-nginx + container_name: nginx + restart: always + ports: + - "80:80" + - "443:443" + volumes: + - "/mnt/etc/uk.yimian.xyz/nginx/:/etc/nginx/" + - "/mnt/:/mnt/" + - "/var/log/nginx/:/var/log/nginx/" + - "/home/www/:/home/www/" + #network_mode: "host" + depends_on: + - oneindex + - php-fpm + - frps + - session + - acg.watch-api + - serverstatus + - ushio-win-server + - danmaku-api + - coro-api + - todo-ddl-api + - upload-api + networks: + - default + - php_net + - frp_net + + dns: + image: strm/dnsmasq + restart: always + volumes: + - /mnt/config/dnsmasq/dnsmasq.conf:/etc/dnsmasq.conf + - /mnt/config/dnsmasq/dnsmasq.d/:/etc/dnsmasq.d/ + - /mnt/config/dnsmasq/hosts.conf:/etc/hosts.conf + ports: + - "53:53/udp" + - "53:53/tcp" + cap_add: + - NET_ADMIN + networks: + - dns_net + +# Database +#---------------------------------- + redis: + image: redis + container_name: redis + restart: always + volumes: + - "/tmp/redis/data/:/data/" + ports: + - "6379:6379" + networks: + - redis_net + mongo: + image: mongo + container_name: mongo + restart: always + volumes: + - "/var/mongo:/data/db" + networks: + - mongo_net + + +# app-level services +# -------------------------------------- + php-fpm: + container_name: php-fpm + image: crunchgeek/php-fpm:7.3 + restart: always + volumes: + - "/home/:/home/" + - "/mnt/:/mnt/" + networks: + - php_net + frps: + image: snowdreamtech/frps + container_name: frps + restart: always + volumes: + - "/mnt/config/frp/frps.ini:/etc/frp/frps.ini" + ports: + - "4480:4480" + - "4443:4443" + - "4477:4477" + - "4400-4440:4400-4440" + networks: + - frp_net + emqx: + image: emqx/emqx + container_name: emqx + restart: always + ports: + - "1883:1883" + - "8083:8083" + - "8883:8883" + - "8084:8084" + - "18083:18083" + networks: + - mqtt_net + monitor: + #build: https://github.com/iotcat/ushio-monitor.git + image: iotcat/ushio-monitor + container_name: monitor + restart: always + command: USER=cn.yimian.xyz + network_mode: "host" + + +# common apps +# ------------------------------------- + oneindex: + image: iotcat/oneindex + container_name: oneindex + restart: always + volumes: + - "/mnt/config/oneindex/:/var/www/html/config/" + session: + #build: https://github.com/iotcat/ushio-session.git + image: iotcat/ushio-session + container_name: session + restart: always + networks: + - default + - redis_net + acg.watch-api: + #build: https://github.com/iotcat/acg.watch-api.git + image: iotcat/acg.watch-api + container_name: acg.watch-api + restart: always + volumes: + - "/mnt/cache/video/:/mnt/cache/video/" + + + + +# local apps +# --------------------------------------- + serverstatus: + image: cppla/serverstatus + container_name: serverstatus + restart: always + volumes: + - "/mnt/config/serverstatus/config.json:/ServerStatus/server/config.json" + ports: + - "35601:35601" + ushio-win-server: + #build: https://github.com/iotcat/ushio-win-server.git + image: iotcat/ushio-win-server + container_name: ushio-win-server + restart: always + kms: + #build: https://github.com/iotcat/kms-dockcer.git + image: iotcat/kms + container_name: kms + restart: always + ports: + - "1688:1688" + bingimgupdate-opt: + #build: https://github.com/iotcat/bingUpdateImg-opt.git + image: iotcat/bingimgupdate-opt + container_name: bingimgupdate-opt + restart: always + volumes: + - "/mnt/config/token/huaweicloud/:/mnt/config/token/huaweicloud/" + - "/tmp/:/tmp/" + danmaku-api: + #build: https://github.com/iotcat/danmaku-api.git + image: iotcat/danmaku-api + container_name: danmaku-api + restart: always + depends_on: + - redis + - mongo + networks: + - default + - redis_net + - mongo_net + environment: + REDIS_HOST: "redis" + REDIS_PORT: 6379 + MONGO_HOST: "mongo" + MONGO_PORT: 27017 + MONGO_DATABASE: "danmaku" + volumes: + - /var/log/danmaku-api/app:/usr/src/app/logs + - /var/log/danmaku-api/pm2:/root/.pm2/logs + coro-api: + #build: https://github.com/iotcat/coro-api.git + image: iotcat/coro-api + container_name: coro-api + restart: always + todo-ddl-api: + #build: https://github.com/iotcat/todo-ddl-api.git + image: iotcat/todo-ddl-api + container_name: todo-ddl-api + restart: always + volumes: + - "/mnt/var/todo-ddl/:/mnt/var/todo-ddl/" + upload-api: + #build: https://github.com/IoTcat/upload-api.git + image: iotcat/upload-api + container_name: upload-api + restart: always + volumes: + - "/mnt/config/token/huaweicloud/:/mnt/config/token/huaweicloud/" + tmpfs: + - /tmp + + + +# networks setting +# ------------------------------------ +networks: + default: + + dns_net: + + redis_net: + + mongo_net: + + php_net: + + frp_net: + + mqtt_net: diff --git a/usa.yimian.xyz/docker-compose.yml b/usa.yimian.xyz/docker-compose.yml new file mode 100644 index 0000000..96aec30 --- /dev/null +++ b/usa.yimian.xyz/docker-compose.yml @@ -0,0 +1,159 @@ +version: '3' +services: + +# system-level services +#-------------------------------- + nginx: + image: iotcat/ushio-nginx + container_name: nginx + restart: always + ports: + - "80:80" + - "443:443" + volumes: + - "/mnt/etc/usa.yimian.xyz/nginx/:/etc/nginx/" + - "/mnt/:/mnt/" + - "/var/log/nginx/:/var/log/nginx/" + - "/home/www/:/home/www/" + #network_mode: "host" + depends_on: + - oneindex + - php-fpm + - frps + - ushio-proxy + networks: + - default + - php_net + - frp_net + + dns: + image: strm/dnsmasq + restart: always + volumes: + - /mnt/config/dnsmasq/dnsmasq.conf:/etc/dnsmasq.conf + - /mnt/config/dnsmasq/dnsmasq.d/:/etc/dnsmasq.d/ + - /mnt/config/dnsmasq/hosts.conf:/etc/hosts.conf + ports: + - "53:53/udp" + - "53:53/tcp" + cap_add: + - NET_ADMIN + networks: + - dns_net + +# Database +#---------------------------------- + redis: + image: redis + container_name: redis + restart: always + volumes: + - "/tmp/redis/data/:/data/" + networks: + - redis_net + mongo: + image: mongo + container_name: mongo + restart: always + volumes: + - "/var/mongo:/data/db" + networks: + - mongo_net + + +# app-level services +# -------------------------------------- + php-fpm: + container_name: php-fpm + image: crunchgeek/php-fpm:7.3 + restart: always + volumes: + - "/home/:/home/" + - "/mnt/:/mnt/" + networks: + - php_net + frps: + image: snowdreamtech/frps + container_name: frps + restart: always + volumes: + - "/mnt/config/frp/frps.ini:/etc/frp/frps.ini" + ports: + - "4480:4480" + - "4443:4443" + - "4477:4477" + - "4400-4440:4400-4440" + networks: + - frp_net + monitor: + #build: https://github.com/iotcat/ushio-monitor.git + image: iotcat/ushio-monitor + container_name: monitor + restart: always + command: USER=usa.yimian.xyz + network_mode: "host" + + + redrange: + image: wordpress:latest + ports: + - "8000:80" + restart: always + environment: + WORDPRESS_DB_HOST: db.yimian.xyz:3306 + WORDPRESS_DB_USER: redrange + WORDPRESS_DB_PASSWORD: redrange3@25 + WORDPRESS_DB_NAME: redrange + +# common apps +# ------------------------------------- + oneindex: + image: iotcat/oneindex + container_name: oneindex + restart: always + volumes: + - "/mnt/config/oneindex/:/var/www/html/config/" + + + +# local apps +# --------------------------------------- + kms: + #build: https://github.com/iotcat/kms-dockcer.git + image: iotcat/kms + container_name: kms + restart: always + ports: + - "1688:1688" + + v2ray: + image: v2ray/official + container_name: v2ray + restart: always + volumes: + - "/mnt/config/v2ray/:/etc/v2ray/" + - "/var/log/v2ray/:/var/log/v2ray/" + + ushio-proxy: + #build: https://github.com/iotcat/ushio-proxy.git + image: iotcat/ushio-proxy + container_name: ushio-proxy + restart: always + + +# networks setting +# ------------------------------------ +networks: + default: + + dns_net: + + redis_net: + + mongo_net: + + php_net: + + frp_net: + + mqtt_net: