-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configure application to be compactible for traefik deployment
- Loading branch information
1 parent
f5466f0
commit 2ab2858
Showing
8 changed files
with
7,641 additions
and
5,771 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
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,41 @@ | ||
version: "3.8" | ||
|
||
networks: | ||
user-net: | ||
driver: bridge | ||
|
||
services: | ||
traefik: | ||
image: traefik:v3.0 | ||
command: | ||
- "--api.insecure=true" | ||
- "--providers.docker=true" | ||
- "--entrypoints.web.address=:80" | ||
ports: | ||
- "80:80" # Expose HTTP | ||
- "8080:8080" # Expose Traefik dashboard | ||
volumes: | ||
- "/var/run/docker.sock:/var/run/docker.sock:ro" # Allow Traefik to listen to Docker | ||
networks: | ||
- user-net | ||
|
||
|
||
user-frontend: | ||
image: user-frontend:1.0 | ||
labels: | ||
- "traefik.enable=true" | ||
- "traefik.http.routers.frontend.rule=Host(`frontend.localhost`)" | ||
- "traefik.http.services.frontend.loadbalancer.server.port=80" | ||
depends_on: | ||
- user-backend | ||
networks: | ||
- user-net | ||
|
||
user-backend: | ||
image: user-backend:1.0 | ||
labels: | ||
- "traefik.enable=true" | ||
- "traefik.http.routers.backend.rule=Host(`backend.localhost`)" | ||
- "traefik.http.services.backend.loadbalancer.server.port=8082" | ||
networks: | ||
- user-net |
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
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,2 @@ | ||
REACT_APP_API_URL=http://backend.localhost/api | ||
|
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
Oops, something went wrong.