Remove Nginx gateway - let Coolify Traefik handle reverse proxy routing
This commit is contained in:
+6
-17
@@ -1,20 +1,8 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# 1. Nginx Gateway Reverse Proxy
|
# 1. PHP + Apache Web App (for Root Portal, SPBU, Parsil, and Chloropleth)
|
||||||
gateway:
|
# Coolify's Traefik reverse proxy routes traffic to this service via the domain set in Coolify UI.
|
||||||
build:
|
|
||||||
context: ./docker/nginx # Build from our custom Dockerfile
|
|
||||||
container_name: gis_gateway
|
|
||||||
ports:
|
|
||||||
- "${HOST_PORT_GATEWAY:-80}:80"
|
|
||||||
depends_on:
|
|
||||||
- php-app
|
|
||||||
- next-app
|
|
||||||
networks:
|
|
||||||
- gis-network
|
|
||||||
|
|
||||||
# 2. PHP + Apache Web App (for Root Portal, SPBU, Parsil, and Chloropleth)
|
|
||||||
php-app:
|
php-app:
|
||||||
build: ./docker/php
|
build: ./docker/php
|
||||||
container_name: gis_php_app
|
container_name: gis_php_app
|
||||||
@@ -30,7 +18,8 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- gis-network
|
- gis-network
|
||||||
|
|
||||||
# 3. Next.js App Service
|
# 2. Next.js App Service
|
||||||
|
# Coolify's Traefik reverse proxy routes traffic to this service via the domain set in Coolify UI.
|
||||||
next-app:
|
next-app:
|
||||||
build: ./docker/nextjs
|
build: ./docker/nextjs
|
||||||
container_name: gis_next_app
|
container_name: gis_next_app
|
||||||
@@ -48,7 +37,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- gis-network
|
- gis-network
|
||||||
|
|
||||||
# 4. MySQL Database Service
|
# 3. MySQL Database Service
|
||||||
db:
|
db:
|
||||||
image: mysql:8.0
|
image: mysql:8.0
|
||||||
container_name: gis_db
|
container_name: gis_db
|
||||||
@@ -63,7 +52,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- gis-network
|
- gis-network
|
||||||
|
|
||||||
# 5. phpMyAdmin (Database Management Web UI)
|
# 4. phpMyAdmin (Database Management Web UI)
|
||||||
phpmyadmin:
|
phpmyadmin:
|
||||||
image: phpmyadmin:latest
|
image: phpmyadmin:latest
|
||||||
container_name: gis_phpmyadmin
|
container_name: gis_phpmyadmin
|
||||||
|
|||||||
Reference in New Issue
Block a user