Commit c5b3cf5
committed
Enhance security and modularity of Docker Compose setup
- Removed `ports` for `gym-api` to prevent public exposure.
- Added environment variables for flexible configuration:
- Database connection, JWT settings, CORS, and API path.
- Introduced `networks` for secure service communication:
- `proxy_net` for external proxy access.
- `internal_net` for private API-to-database communication.
- Restricted `gym-db` access to `internal_net` only.
- Removed manual `nginx` service; rely on Nginx Proxy Manager.
- Replaced `volumes` with `networks` at the root level.1 parent af8a5cb commit c5b3cf5
1 file changed
+19
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
| 10 | + | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
15 | 25 | | |
16 | 26 | | |
17 | 27 | | |
| |||
22 | 32 | | |
23 | 33 | | |
24 | 34 | | |
| 35 | + | |
| 36 | + | |
25 | 37 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 38 | + | |
| 39 | + | |
36 | 40 | | |
37 | | - | |
38 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
0 commit comments