chore: copy code files into images for Coolify & ignore local mounts
This commit is contained in:
+6
-8
@@ -4,10 +4,10 @@ services:
|
||||
# 1. PHP + Apache Web App (for Root Portal, SPBU, Parsil, and Chloropleth)
|
||||
# Coolify's Traefik reverse proxy routes traffic to this service via the domain set in Coolify UI.
|
||||
php-app:
|
||||
build: ./docker/php
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./docker/php/Dockerfile
|
||||
container_name: gis_php_app
|
||||
volumes:
|
||||
- .:/var/www/html
|
||||
environment:
|
||||
- DB_HOST=db
|
||||
- DB_DATABASE=spbu_db
|
||||
@@ -21,13 +21,11 @@ services:
|
||||
# 2. Next.js App Service
|
||||
# Coolify's Traefik reverse proxy routes traffic to this service via the domain set in Coolify UI.
|
||||
next-app:
|
||||
build: ./docker/nextjs
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./docker/nextjs/Dockerfile
|
||||
container_name: gis_next_app
|
||||
working_dir: /app
|
||||
volumes:
|
||||
- ./sistem-km-next:/app
|
||||
- /app/node_modules # Anonymous volume to isolate node_modules from host machine
|
||||
- /app/.next # Anonymous volume for nextjs build artifacts
|
||||
environment:
|
||||
- NEXT_PUBLIC_SUPABASE_URL=https://gzpvygrsfdtzykyqbnes.supabase.co
|
||||
- NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imd6cHZ5Z3JzZmR0enlreXFibmVzIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzkxNTUxNTIsImV4cCI6MjA5NDczMTE1Mn0.bP4qLY6PVT9UplSxB276tZ5HWClIkiuZ_-Yx3IlL8Dw
|
||||
|
||||
Reference in New Issue
Block a user