Refactor Docker Compose configuration to streamline network setup
- Removed the Nginx reverse proxy service from docker-compose.yml as it is now optional. - Updated the network configuration to use an external network named '365Devnet' for better integration with existing services.
This commit is contained in:
@@ -32,28 +32,10 @@ services:
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
# Nginx Reverse Proxy (Optional - for SSL termination & caching)
|
||||
nginx:
|
||||
image: nginx:stable-alpine
|
||||
container_name: 365devnet-nginx
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
# Add SSL certificates if you have them
|
||||
# - ./ssl/cert.pem:/etc/nginx/ssl/cert.pem:ro
|
||||
# - ./ssl/key.pem:/etc/nginx/ssl/key.pem:ro
|
||||
depends_on:
|
||||
web:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- devnet
|
||||
|
||||
networks:
|
||||
devnet:
|
||||
driver: bridge
|
||||
external: true
|
||||
name: 365Devnet
|
||||
|
||||
# Optional: Add volumes for persistent data
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user