• 0 Posts
  • 10 Comments
Joined 2 months ago
cake
Cake day: February 15th, 2025

help-circle




  • The error suggests that you’re trying to mount a file (Caddyfile) onto a directory or vice versa. Let’s debug this step by step.

    Steps to Fix:

    1. Check if the path exists and is correct Run:

      ls -ld /home/Joe/container/caddy/Caddyfile
      
      • If it’s a directory, it should be a file instead.
      • If it doesn’t exist, create an empty one:
        touch /home/Joe/container/caddy/Caddyfile
        
    2. Ensure correct permissions

      chmod 644 /home/Joe/container/caddy/Caddyfile
      
    3. Check YAML Formatting
      Your docker-compose.yml seems to have incorrect indentation and improper quotes around version. Here’s a fixed version:

      version: "3.3"
      
      networks:
        caddy:
      
      services:
        portainer:
          image: portainer/portainer-ce:latest
          container_name: portainer2
          restart: unless-stopped
          security_opt:
            - no-new-privileges:true
          volumes:
            - /etc/localtime:/etc/localtime:ro
            - /var/run/docker.sock:/var/run/docker.sock:ro
            - /home/Joe/containers/portainer/portainer-data:/data
          networks:
            - caddy
          ports:
            - 9000:9000
      
        caddy:
          image: caddy:latest
          restart: unless-stopped
          container_name: caddy
          ports:
            - 80:80
            - 443:443
          volumes:
            - /home/Joe/container/caddy/Caddyfile:/etc/caddy/Caddyfile
            - /home/Joe/container/caddy/site:/srv
            - /home/Joe/container/caddy/caddy_data:/data
            - /home/Joe/container/caddy/caddy_config:/config
          networks:
            - caddy
      
    4. Restart Docker and Try Again

      docker compose down
      docker compose up -d
      

    If the error persists, check docker logs caddy for additional hints.





  • You can get 4 cores, 6gb ram, 200gb ssd for 6$ per month from contabo.

    Lets normalize the price for comparison.

    6/3 = 2

    So for the same normalized price you get:

    • 4/3 = 1.333 cores
    • 6/3 = 2GB RAM
    • 200/3 = 66GB SSD storage

    Thats a bit more CPU, four times the RAM and six times the storage!!!

    I highly doubt that the “near bare metal” performance of that one core is better than just having 30% more virtualized cores.

    And the math gets even worse if you compare the other tiers.

    The only good tradeoff for this offer is the unlimited traffic IF and only if you actually would hit the comtabo limits (32TB outbound + unlimited incoming) and there is probably some math where you can calculate when it starts to be worth the money vs. getting a second contabo vps.