Skip to content

docker_install

谦君 edited this page Aug 4, 2024 · 11 revisions

Docker Build:

docker build -t setube/vue-xiuxiangame -f Dockerfile .

Docker Run:

docker run -p 8080:8080 setube/vue-xiuxiangame

Docker Image Pull (From TencentCloud)

docker pull ccr.ccs.tencentyun.com/wuchen/vue-xiuxiangame

RUN:

docker run -p 8080:8080 ccr.ccs.tencentyun.com/wuchen/vue-xiuxiangame

Docker Compose (Example)

version: '3.9'
services:
    vue-xiuxiangame:
        image: vue-xiuxiangame:0.6.9
        # You can also change it to ccr.ccs.tencentyun.com/wuchen/vue-xiuxiangame
        ports:
            - '8080:8080'
        container_name: xiuxian0
        tty: true
        stdin_open: true

Tip: When using NGINX as a reverse proxy, please note that the request address is localhost or 127.0.0.1

Clone this wiki locally