my website at ewancroft.uk
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

Refactor Docker setup: remove Dockerfile, add Caddyfile, and update compose.yml for Caddy integration

+7 -29
-3
.gitignore
··· 11 11 # Why the hell does this exist? It's just a bloodstain on a perfectly white shirt! 12 12 .DS_Store 13 13 14 - Caddyfile 15 - /caddy/* 16 - 17 14 # Node.js dependencies 18 15 /node_modules/ 19 16 /package-lock.json
-20
Dockerfile
··· 1 - # Use the official Node.js image as the base image 2 - FROM node:18-alpine 3 - 4 - # Set the working directory 5 - WORKDIR /srv/www/ewancroft.uk 6 - 7 - # Copy package.json and package-lock.json 8 - COPY package*.json ./ 9 - 10 - # Install dependencies 11 - RUN npm install 12 - 13 - # Copy the rest of the application code 14 - COPY . . 15 - 16 - # Expose the port the app runs on 17 - EXPOSE 3000 18 - 19 - # Command to run the application 20 - CMD ["npm", "start"]
+4
caddy/Caddyfile
··· 1 + :80 { 2 + root * /srv/www/ewancroft.uk 3 + file_server 4 + }
+3 -6
compose.yml
··· 1 1 services: 2 2 web: 3 - build: 4 - context: . 5 - dockerfile: Dockerfile 3 + image: caddy:alpine 6 4 ports: 7 - - "3002:3000" 5 + - "3002:80" 8 6 volumes: 9 7 - .:/srv/www/ewancroft.uk 10 - environment: 11 - NODE_ENV: production 8 + - ./caddy/Caddyfile:/etc/caddy/Caddyfile 12 9 networks: 13 10 - www 14 11