Skip to content

Commit

Permalink
Create docker-comtestBck.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
malenelu authored and GitHub Enterprise committed Mar 13, 2025
1 parent 610ccec commit d044ff9
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docker-comtestBck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
version: '3'
name: secfit_dev

services:
backend:
container_name: secfit_dev_backend
build:
context: backend/
dockerfile: Dockerfile
network: host #Need to expose it during setup, then it is isolated during running
networks:
backend_bridge:
ports:
- ${DEV_PORT_PREFIX}4:8000
volumes:
- backend_vol:/app


# Configuration for the NGINX reverse proxy. This module routes incoming traffic to either the frontend or backend.
gateway:
container_name: secfit_dev_gateway
image: nginx:latest
ports:
- ${DEV_PORT_PREFIX}6:80
networks:
backend_bridge:
volumes:
- ./nginx/nginx.conf:nginx/nginx.conf
depends_on:
- backend

# The network configuration isolates the modules within a single network and an IP.
networks:
backend_bridge:
driver: bridge

0 comments on commit d044ff9

Please sign in to comment.