Skip to content

Commit

Permalink
feat: Continuing to work on Traefilk integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Jan 13, 2025
1 parent 899e411 commit 75d015c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 8 deletions.
15 changes: 8 additions & 7 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"sarif-viewer.connectToGithubCodeScanning": "off",
"codeQL.githubDatabase.update": "never",
"yaml.schemas": {
"https://goreleaser.com/static/schema-pro.json": ".goreleaser.yml",
"file:///Users/rparman/.vscode/extensions/atlassian.atlascode-3.0.10/resources/schemas/pipelines-schema.json": "bitbucket-pipelines.yml",
"https://json.schemastore.org/github-issue-config.json": "file:///Library/WebServer/Documents/northwood-labs/devsec-tools/.github/ISSUE_TEMPLATE/config.yml"
}
"sarif-viewer.connectToGithubCodeScanning": "off",
"codeQL.githubDatabase.update": "never",
"yaml.schemas": {
"https://goreleaser.com/static/schema-pro.json": ".goreleaser.yml",
"file:///Users/rparman/.vscode/extensions/atlassian.atlascode-3.0.10/resources/schemas/pipelines-schema.json": "bitbucket-pipelines.yml",
"https://json.schemastore.org/github-issue-config.json": "file:///Library/WebServer/Documents/northwood-labs/devsec-tools/.github/ISSUE_TEMPLATE/config.yml",
"https://json.schemastore.org/traefik-v3.json": "traefik.yml"
}
}
7 changes: 6 additions & 1 deletion localdev/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,15 @@ services:

# Enables the web UI and tells Traefik to listen to Docker
command:
- "--log.level=DEBUG"
# - "--log.level=DEBUG"
- "--api=true"
- "--api.dashboard=true"
- "--api.insecure=true"
- "--entryPoints.web.address=:80"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker=true"
- "--providers.file.filename=/traefik.yml"
- "--providers.file.watch=true"

# Set shared memory limit when using `docker compose`.
shm_size: 512mb
Expand All @@ -103,6 +107,7 @@ services:
volumes:
# So that Traefik can listen to the Docker events
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./traefik.yml/:/traefik.yml"

ports:
- 80:80 # Have Traefik run on port 80; distinguish by /etc/hosts definitions
Expand Down
12 changes: 12 additions & 0 deletions localdev/traefik.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
http:
routers:
apiproxy:
rule: Host(`api.devsec.local`)
service: apiproxy

services:
apiproxy:
loadBalancer:
servers:
- url: http://localhost:8080

0 comments on commit 75d015c

Please sign in to comment.