feat: update Docker Compose configuration and add deployment script

This commit is contained in:
Nils-Johan Gynther
2026-04-15 20:06:20 +02:00
parent 8efd9f6e1e
commit 29d4cef688
3 changed files with 45 additions and 3 deletions
+9 -3
View File
@@ -4,10 +4,15 @@ services:
context: ./frontend
dockerfile: Dockerfile
image: recipe-frontend:local
pull_policy: never
container_name: recipe-frontend
restart: unless-stopped
environment:
NEXT_PUBLIC_API_URL: "http://recipe-api:8080"
NODE_ENV: "production"
HOSTNAME: "0.0.0.0"
PORT: "3000"
NEXT_PUBLIC_APP_URL: "${NEXT_PUBLIC_APP_URL}"
NEXT_PUBLIC_API_URL: "${NEXT_PUBLIC_API_URL}"
NEXT_PUBLIC_API_URL_INTERNAL: "http://recipe-api:8080"
volumes:
- recipe_images:/app/public/images
depends_on:
@@ -28,9 +33,10 @@ services:
context: ./backend
dockerfile: Dockerfile
image: recipe-api:local
pull_policy: never
container_name: recipe-api
restart: unless-stopped
environment:
NODE_ENV: "production"
DATABASE_URL: "mysql://root:${MARIADB_ROOT_PASSWORD}@recipe-db:3306/${MARIADB_DATABASE}"
volumes:
- recipe_images:/app/recipe-images