feat: update Docker Compose configuration and add deployment script
This commit is contained in:
+9
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user