[新服务] devresume 自建简历服务

date
Nov 5, 2023
slug
newservice-devresume
status
Published
summary
新服务-
tags
service
type
Post
notion image

Summary

    步骤

    export DOCKER_PROJ=devresume
    
    mkdir -p /data/$DOCKER_PROJ/devresume; cd /data/$DOCKER_PROJ
    
    cat > docker-compose.yml <<EOF
    version: '3.8'
    
    services:
      devresume:
        image: alpine:latest
        container_name: devresume_app
    #    ports:
    #      - "5173:5173"
        volumes:
          - ./devresume:/devresume
        working_dir: /devresume
        entrypoint:
          - /bin/sh
          - -c
          - |
            apk add --no-cache git nodejs npm &&         git clone https://github.com/vangelov/devresume.git /devresume &&         npm install &&         npm run dev
    networks:
      default:
        name: npm_nginx_proxy_manager-network
        external: true
    EOF
    
    docker-compose down; docker-compose up -d; sleep 1s; docker-compose logs -f

    #2

    验证


    © Ying Bun 2021 - 2024