Skip to content

Commit

Permalink
Remove unnecessary traefik configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarnutsch committed Nov 5, 2024
1 parent b42af70 commit f816a52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .docker-compose/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
sed -i '' 's/dev\.comet\-dxp\.com/comet-starter-site-tyqqf.ondigitalocean.app/g' site-configs/main.ts
sed -i 's/dev\.comet\-dxp\.com/cometdxp.com/g' site-configs/main.ts
APP_ENV=dev npx -y @comet/cli inject-site-configs -f ../../../../../site-configs/site-configs.ts -i .docker-compose/docker-compose.tpl.yml -o .docker-compose/docker-compose.yml

docker compose -f .docker-compose/docker-compose.yml build
docker compose -f .docker-compose/docker-compose.yml up

Traefik dashboard available at http://localhost:8088
10 changes: 2 additions & 8 deletions .docker-compose/docker-compose.tpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,9 @@ services:
command:
# - "--log.level=TRACE"
- "--accessLog=true"
- "--accessLog.fields.defaultMode=keep"
- "--accessLog.fields.headers.defaultMode=keep"
- "--accessLog.fields.names.defaultMode=keep"
- "--accesslog.fields.headers.names.Cookie=keep"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.exposedbydefault=false" # services need to be exposed by setting traefik.enable=true
- "--entryPoints.websecure.address=:443"
- "--entryPoints.websecure.forwardedHeaders.insecure"
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
#- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory" # used for cert debugging
- "--certificatesresolvers.myresolver.acme.email=postmaster@cometdxp.com"
Expand Down Expand Up @@ -137,7 +131,7 @@ services:
API_URL: https://admin.cometdxp.com/api
ADMIN_URL: https://admin.cometdxp.com
PUBLIC_SITE_CONFIGS: "{{ site://configs/public/dev }}"
PREVIEW_URL: https://comet-starter-site-preview-jespg.ondigitalocean.app
PREVIEW_URL: https://comet-starter-site-preview-jespg.ondigitalocean.app # TODO

site:
build:
Expand Down

0 comments on commit f816a52

Please sign in to comment.