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.
142 lines
2.8 KiB
142 lines
2.8 KiB
version: '3' |
|
services: |
|
|
|
# system-level services |
|
#-------------------------------- |
|
|
|
|
|
nginx: |
|
#image: iotcat/ushio-nginx |
|
image: docker.yimian.xyz:5000/nginx |
|
#image: docker.yimian.xyz:5000/hub/nginx |
|
container_name: nginx |
|
restart: always |
|
ports: |
|
- "80:80" |
|
- "443:443" |
|
volumes: |
|
- "/mnt/etc/home.yimian.xyz/nginx/:/etc/nginx/" |
|
- "/mnt/etc/:/mnt/etc/" |
|
- "/mnt/var/ssl/:/mnt/config/ssl/" |
|
- "/var/log/nginx/:/var/log/nginx/" |
|
- "/home/:/home/" |
|
#network_mode: "host" |
|
#command: sh /ip.sh & nginx -g daemon off; |
|
depends_on: |
|
- registry |
|
- php-fpm |
|
- v2ray |
|
- nextcloud |
|
|
|
|
|
|
|
|
|
|
|
|
|
# Database |
|
#---------------------------------- |
|
|
|
# app-level services |
|
# -------------------------------------- |
|
monitor: |
|
#build: https://github.com/iotcat/ushio-monitor.git |
|
#image: iotcat/ushio-monitor |
|
image: docker.yimian.xyz:5000/monitor |
|
container_name: monitor |
|
restart: always |
|
command: USER=home.yimian.xyz |
|
network_mode: "host" |
|
depends_on: |
|
- registry |
|
|
|
php-fpm: |
|
#image: crunchgeek/php-fpm:7.3 |
|
image: docker.yimian.xyz:5000/php-fpm |
|
container_name: php-fpm |
|
restart: always |
|
volumes: |
|
- "/home/:/home/" |
|
- "/mnt/:/mnt/" |
|
depends_on: |
|
- registry |
|
|
|
|
|
|
|
frpc: |
|
#image: snowdreamtech/frpc |
|
image: docker.yimian.xyz:5000/frpc |
|
container_name: frpc |
|
restart: always |
|
volumes: |
|
- "/mnt/etc/common/frp/frpc.ini.home:/etc/frp/frpc.ini" |
|
network_mode: "host" |
|
depends_on: |
|
- registry |
|
|
|
# common apps |
|
# ------------------------------------- |
|
|
|
|
|
|
|
|
|
# local apps |
|
# --------------------------------------- |
|
|
|
registry: |
|
image: docker.yimian.xyz:5000/registry |
|
container_name: registry |
|
restart: always |
|
environment: |
|
- REGISTRY_HTTP_TLS_CERTIFICATE=/certs/yimian.xyz.crt |
|
- REGISTRY_HTTP_TLS_KEY=/certs/yimian.xyz.key |
|
ports: |
|
- 5000:5000 |
|
volumes: |
|
- "/mnt/var/ssl/yimian.xyz:/certs" |
|
- "/var/docker:/var/lib/registry" |
|
|
|
gitea: |
|
image: docker.yimian.xyz:5000/gitea |
|
environment: |
|
- USER_UID=1000 |
|
- USER_GID=1000 |
|
#- HTTP_PORT=80 |
|
- SSH_PORT=4422 |
|
restart: always |
|
volumes: |
|
- /home/data/gitea:/data |
|
- /etc/timezone:/etc/timezone:ro |
|
- /etc/localtime:/etc/localtime:ro |
|
ports: |
|
- "3000:3000" |
|
- "222:22" |
|
|
|
|
|
v2ray: |
|
#image: v2ray/official |
|
image: docker.yimian.xyz:5000/v2ray |
|
container_name: v2ray |
|
restart: always |
|
volumes: |
|
- "/mnt/config/v2ray/home.yimian.xyz/config.json:/etc/v2ray/config.json" |
|
- "/var/log/v2ray/:/var/log/v2ray/" |
|
depends_on: |
|
- registry |
|
|
|
|
|
nextcloud: |
|
image: nextcloud |
|
container_name: nextcloud |
|
restart: always |
|
volumes: |
|
- "/home/data/nextcloud:/var/www/html" |
|
ports: |
|
- "8888:80" |
|
|
|
|
|
# networks setting |
|
# ------------------------------------ |
|
networks: |
|
default: |
|
|
|
|
|
|