檢查對外 80/443/3306 Port
sudo lsof -i -P -n | grep LISTEN
建立路徑
mkdir /var/docker-www/
git clone https://github.com/mrmu/wp-proxy-companion.git
cd wp-proxy-companios
docker network create wp-proxy
docker-compose up -d --build
執行api伺服器
version: '3.7'
services:
dice:
image: raidavid/raiaiserver:raidiceapi.04.28_1
ports:
- "9000:5000"
restart: always
environment:
- NVIDIA_VISIBLE_DEVICES=all
environment:
VIRTUAL_HOST: "api.intemotech.com"
LETSENCRYPT_HOST: "api.intemotech.com"
LETSENCRYPT_EMAIL: "rai.mobile.studio@gmail.com"
command: >
/bin/bash -c "cd /app;source /opt/conda/bin/activate;conda activate base;export FLASK_APP=run.py;flask run --no-debugger --host 0.0.0.0 --port 5000"
networks:
default:
external:
name: wp-proxy