diff --git a/docker-compose.yml b/docker-compose.yml index 2591814..1d48132 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,10 +5,10 @@ services: build: . # Das Image wird beim Start aus dem lokalen Dockerfile gebaut container_name: pixelbrew restart: unless-stopped + env_file: + - .env environment: - NODE_ENV=production - - ADMIN_USERNAME=${ADMIN_USERNAME} - - ADMIN_PASSWORD=${ADMIN_PASSWORD} labels: - "traefik.enable=true" - "traefik.http.routers.pixelbrew.rule=Host(`${DOMAIN}`)" diff --git a/next.config.js b/next.config.js index 1b33044..5a0f83a 100644 --- a/next.config.js +++ b/next.config.js @@ -1,15 +1,4 @@ module.exports = { - reactStrictMode: true, - output: 'standalone', - images: { - domains: ['images.unsplash.com', 'localhost'], - }, - env: { - SMTP_HOST: process.env.SMTP_HOST || 'smtp.example.com', - SMTP_PORT: process.env.SMTP_PORT || '587', - SMTP_USER: process.env.SMTP_USER || 'user@example.com', - SMTP_PASSWORD: process.env.SMTP_PASSWORD || 'default-password', - },s = { reactStrictMode: true, output: 'standalone', images: { diff --git a/package-lock.json b/package-lock.json index c4cfa58..cb8ed6c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "framer-motion": "^12.16.0", "leaflet": "^1.9.4", "next": "^13.0.0", + "nodemailer": "^7.0.5", "react": "^18.2.0", "react-dom": "^18.2.0", "react-icons": "^5.5.0", @@ -1473,6 +1474,15 @@ "dev": true, "license": "MIT" }, + "node_modules/nodemailer": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-7.0.5.tgz", + "integrity": "sha512-nsrh2lO3j4GkLLXoeEksAMgAOqxOv6QumNRVQTJwKH4nuiww6iC2y7GyANs9kRAxCexg3+lTWM3PZ91iLlVjfg==", + "license": "MIT-0", + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", diff --git a/package.json b/package.json index 3557e36..63fe58b 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "framer-motion": "^12.16.0", "leaflet": "^1.9.4", "next": "^13.0.0", + "nodemailer": "^7.0.5", "react": "^18.2.0", "react-dom": "^18.2.0", "react-icons": "^5.5.0",