add a Dockerfile so app can be containerized

This commit is contained in:
2026-06-01 14:38:30 +01:00
parent cfebb4cee5
commit bb008f7f8f
4 changed files with 281 additions and 0 deletions

32
compose.yml Normal file
View File

@@ -0,0 +1,32 @@
services:
# Node.js service (use with: docker compose up nextjs-standalone --build)
nextjs-standalone:
build:
context: .
dockerfile: Dockerfile
image: nextjs-standalone-image
container_name: nextjs-standalone-frontend
environment:
NODE_ENV: production
PORT: "3000"
ports:
- "3000:3000"
restart: unless-stopped
# Bun service (use with: docker compose up nextjs-standalone-with-bun --build)
nextjs-standalone-with-bun:
build:
context: .
dockerfile: Dockerfile.bun
image: nextjs-standalone-bun-image
container_name: nextjs-standalone-bun-container
environment:
NODE_ENV: production
PORT: "3000"
ports:
- "3000:3000"
restart: unless-stopped
networks:
traefik_proxy:
external: true