Compare commits
No commits in common. "ed2d2e114be73e57ad98ed5954bfc005d217d9b4" and "2829eeb0186bb206bfc633551d588d92739aae84" have entirely different histories.
ed2d2e114b
...
2829eeb018
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,3 @@
|
|||||||
node_modules
|
node_modules
|
||||||
.next
|
.next
|
||||||
.cursordirectory
|
.cursordirectory
|
||||||
|
|
||||||
copy.sh
|
|
||||||
34
compose.yml
34
compose.yml
@ -1,34 +0,0 @@
|
|||||||
networks:
|
|
||||||
default:
|
|
||||||
|
|
||||||
services:
|
|
||||||
traefik:
|
|
||||||
container_name: neah-traefik
|
|
||||||
image: traefik:latest
|
|
||||||
command:
|
|
||||||
- "--api.insecure=true"
|
|
||||||
- "--providers.docker=true"
|
|
||||||
- "--entrypoints.web.address=:80"
|
|
||||||
ports:
|
|
||||||
- "80:80"
|
|
||||||
- "8080:8080"
|
|
||||||
volumes:
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
networks:
|
|
||||||
- default
|
|
||||||
|
|
||||||
front:
|
|
||||||
container_name: neah-front
|
|
||||||
build:
|
|
||||||
context: ./front
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
environment:
|
|
||||||
- NODE_ENV=production
|
|
||||||
volumes:
|
|
||||||
- ./front:/app
|
|
||||||
labels:
|
|
||||||
- "traefik.enable=true"
|
|
||||||
- "traefik.http.routers.neah-front.rule=Host(`neah.local`)"
|
|
||||||
- "traefik.http.services.neah-front.loadbalancer.server.port=3000"
|
|
||||||
networks:
|
|
||||||
- default
|
|
||||||
@ -1,27 +0,0 @@
|
|||||||
# Use Node.js 22 as the base image
|
|
||||||
FROM node:22-alpine
|
|
||||||
|
|
||||||
# Set working directory
|
|
||||||
WORKDIR /application
|
|
||||||
|
|
||||||
# Copy package files first
|
|
||||||
COPY package*.json ./
|
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
RUN npm ci
|
|
||||||
|
|
||||||
# Copy the rest of the application
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
# Build the Next.js application
|
|
||||||
RUN npm run build
|
|
||||||
|
|
||||||
# Expose port 3000
|
|
||||||
EXPOSE 3000
|
|
||||||
|
|
||||||
# Set environment variable
|
|
||||||
ENV NODE_ENV production
|
|
||||||
ENV NEXT_TELEMETRY_DISABLED 1
|
|
||||||
|
|
||||||
# Start the application and keep the container running even if it fails
|
|
||||||
CMD ["sh", "-c", "npm start || tail -f /dev/null"]
|
|
||||||
0
front/next-env.d.ts → next-env.d.ts
vendored
0
front/next-env.d.ts → next-env.d.ts
vendored
0
front/package-lock.json → package-lock.json
generated
0
front/package-lock.json → package-lock.json
generated
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Loading…
x
Reference in New Issue
Block a user