forked from mathialm/secfit
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |