docker-compose

    0

    0

    youtiaoguagua

     ip: 10.10.0.1
      port: 80
    

    This specifies that caddy should use the image caddy and always restart. The volumes directory contains the dist directory as a volume, which caddy will use to store its files. Caddy will also have an nginx network, which will be used to route requests to the caddy service.

    version: '3.6'
    services:
      caddy:
        image: caddy
        restart: always
        volumes:
          - ./dist:/srv
        networks:
          - nginx
    
    networks:
      nginx:
        external:
          name: nginx
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.