Skip to content

Commit

Permalink
docs(traefik): Document the Traefik configuration for the frontend an…
Browse files Browse the repository at this point in the history
…d backend the docker compose configuration file
  • Loading branch information
drikusroor committed Jan 23, 2024
1 parent 2b0995d commit 7ad5ad8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ services:
- 8854:5000
server:
labels:
# Enables Traefik for the Django backend service,
# routes HTTP requests with the host 'backend.muscle.local' to this service,
# and sets 'web' as the (http, insecure) network entry point for these requests.
- "traefik.enable=true"
- "traefik.http.routers.server.rule=Host(`backend.muscle.local`)"
- "traefik.http.routers.server.entrypoints=web"
Expand Down Expand Up @@ -61,6 +64,9 @@ services:
command: bash -c "python manage.py migrate && python manage.py bootstrap && python manage.py runserver 0.0.0.0:8000"
client:
labels:
# Enables Traefik for the React frontend service,
# routes HTTP requests with the host 'muscle.local' to this service,
# and sets 'web' as the (http, insecure) network entry point for these requests.
- "traefik.enable=true"
- "traefik.http.routers.client.rule=Host(`muscle.local`)"
- "traefik.http.routers.client.entrypoints=web"
Expand Down

0 comments on commit 7ad5ad8

Please sign in to comment.