You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
230 lines
5.5 KiB
230 lines
5.5 KiB
version: '3' |
|
services: |
|
|
|
# system-level services |
|
#-------------------------------- |
|
nginx: |
|
#image: iotcat/ushio-nginx |
|
image: docker.yimian.xyz:4450/nginx |
|
container_name: nginx |
|
restart: always |
|
ports: |
|
- "80:80" |
|
- "443:443" |
|
volumes: |
|
- "/mnt/etc/cn.yimian.xyz/nginx/:/etc/nginx/" |
|
- "/mnt/etc/:/mnt/etc/" |
|
- "/mnt/var/ssl/:/mnt/config/ssl/" |
|
- "/var/log/nginx/:/var/log/nginx/" |
|
- "/home/www/:/home/www/" |
|
#network_mode: "host" |
|
depends_on: |
|
- php-fpm |
|
- session |
|
- serverstatus |
|
- ushio-win-server |
|
- danmaku-api |
|
- coro-api |
|
- todo-ddl-api |
|
- upload-api |
|
networks: |
|
- default |
|
- php_net |
|
|
|
dns: |
|
#image: strm/dnsmasq |
|
image: docker.yimian.xyz:4450/dnsmasq |
|
restart: always |
|
volumes: |
|
- /mnt/etc/common/dnsmasq/dnsmasq.conf:/etc/dnsmasq.conf |
|
- /mnt/etc/common/dnsmasq/dnsmasq.d/:/etc/dnsmasq.d/ |
|
- /mnt/etc/common/dnsmasq/hosts.conf:/etc/hosts.conf |
|
ports: |
|
- "53:53/udp" |
|
- "53:53/tcp" |
|
cap_add: |
|
- NET_ADMIN |
|
networks: |
|
- dns_net |
|
|
|
# Database |
|
#---------------------------------- |
|
redis: |
|
#image: redis |
|
image: docker.yimian.xyz:4450/redis |
|
container_name: redis |
|
restart: always |
|
volumes: |
|
- "/var/redis/data/:/data/" |
|
- "/mnt/etc/common/redis/redis.conf:/usr/local/etc/redis/redis.conf" |
|
command: redis-server /usr/local/etc/redis/redis.conf |
|
networks: |
|
- redis_net |
|
mongo: |
|
#image: mongo |
|
image: docker.yimian.xyz:4450/mongo |
|
container_name: mongo |
|
restart: always |
|
volumes: |
|
- "/var/mongo:/data/db" |
|
networks: |
|
- mongo_net |
|
|
|
|
|
# app-level services |
|
# -------------------------------------- |
|
php-fpm: |
|
#image: crunchgeek/php-fpm:7.3 |
|
image: docker.yimian.xyz:4450/php-fpm |
|
container_name: php-fpm |
|
restart: always |
|
volumes: |
|
- "/home/:/home/" |
|
- "/mnt/:/mnt/" |
|
networks: |
|
- php_net |
|
- redis_net |
|
|
|
monitor: |
|
#build: https://github.com/iotcat/ushio-monitor.git |
|
#image: iotcat/ushio-monitor |
|
image: docker.yimian.xyz:4450/monitor |
|
container_name: monitor |
|
restart: always |
|
command: USER=cn.yimian.xyz |
|
network_mode: "host" |
|
|
|
|
|
# common apps |
|
# ------------------------------------- |
|
|
|
session: |
|
#build: https://github.com/iotcat/ushio-session.git |
|
#image: iotcat/ushio-session |
|
image: docker.yimian.xyz:4450/session |
|
container_name: session |
|
restart: always |
|
networks: |
|
- default |
|
- redis_net |
|
volumes: |
|
- "/mnt/config/dbKeys/auth.js:/mnt/config/dbKeys/auth.js" |
|
|
|
|
|
|
|
|
|
# local apps |
|
# --------------------------------------- |
|
serverstatus: |
|
#image: iotcat/ushio-serverstatus |
|
image: docker.yimian.xyz:4450/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 |
|
image: docker.yimian.xyz:4450/win-server |
|
container_name: ushio-win-server |
|
restart: always |
|
# kms: |
|
#build: https://github.com/iotcat/kms-dockcer.git |
|
#image: iotcat/kms |
|
# image: docker.yimian.xyz:4450/kms |
|
# container_name: kms |
|
# restart: always |
|
# ports: |
|
# - "1688:1688" |
|
bingimgupdate-opt: |
|
#build: https://github.com/iotcat/bingUpdateImg-opt.git |
|
#image: iotcat/bingimgupdate-opt |
|
image: docker.yimian.xyz:4450/bingimgupdate-opt |
|
container_name: bingimgupdate-opt |
|
restart: always |
|
volumes: |
|
- "/mnt/config/token/huaweicloud/:/mnt/config/token/huaweicloud/" |
|
- "/tmp/:/tmp/bingImgUpdate/" |
|
wiot-webpage: |
|
image: docker.yimian.xyz:4450/wiot-webpage |
|
container_name: wiot-webpage |
|
restart: always |
|
wiot-director: |
|
image: docker.yimian.xyz:4450/wiot-director |
|
container_name: wiot-director |
|
restart: always |
|
ports: |
|
- "6789:6789" |
|
danmaku-api: |
|
#build: https://github.com/iotcat/danmaku-api.git |
|
#image: iotcat/danmaku-api |
|
image: docker.yimian.xyz:4450/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 |
|
image: docker.yimian.xyz:4450/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 |
|
image: docker.yimian.xyz:4450/todo-ddl-api |
|
container_name: todo-ddl-api |
|
restart: always |
|
volumes: |
|
- "/mnt/var/data/todo-ddl/:/mnt/var/todo-ddl/" |
|
upload-api: |
|
#build: https://github.com/IoTcat/upload-api.git |
|
#image: iotcat/upload-api |
|
image: docker.yimian.xyz:4450/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 |
|
image: docker.yimian.xyz:4450/mksec |
|
container_name: mksec |
|
restart: always |
|
volumes: |
|
- "/mnt/var/data/mksec/data/:/src/data/" |
|
|
|
|
|
|
|
# networks setting |
|
# ------------------------------------ |
|
networks: |
|
default: |
|
|
|
dns_net: |
|
|
|
redis_net: |
|
|
|
mongo_net: |
|
|
|
php_net: |
|
|
|
|