refactor: tev.sh composefile
Some checks failed
Deploy to Staging / deploy (push) Has been cancelled
Lint Backend / lint-backend (push) Has been cancelled
Playwright Tests / changes (push) Has been cancelled
Playwright Tests / test-playwright (1, 4) (push) Has been cancelled
Playwright Tests / test-playwright (2, 4) (push) Has been cancelled
Playwright Tests / test-playwright (3, 4) (push) Has been cancelled
Playwright Tests / test-playwright (4, 4) (push) Has been cancelled
Playwright Tests / merge-playwright-reports (push) Has been cancelled
Playwright Tests / alls-green-playwright (push) Has been cancelled
Test Backend / test-backend (push) Has been cancelled
Test Docker Compose / test-docker-compose (push) Has been cancelled

This commit is contained in:
bbh
2025-08-01 10:57:24 +08:00
parent 4cb3781010
commit 9a4849ccd7
2 changed files with 53 additions and 40 deletions

View File

@@ -5,45 +5,45 @@ services:
# http://dashboard.localhost.tiangolo.com: frontend # http://dashboard.localhost.tiangolo.com: frontend
# etc. To enable it, update .env, set: # etc. To enable it, update .env, set:
# DOMAIN=localhost.tiangolo.com # DOMAIN=localhost.tiangolo.com
proxy: # proxy:
image: traefik:3.0 # image: traefik:3.0
volumes: # volumes:
- /var/run/docker.sock:/var/run/docker.sock # - /var/run/docker.sock:/var/run/docker.sock
ports: # ports:
- "80:80" # - "80:80"
- "8090:8080" # - "8090:8080"
# Duplicate the command from docker-compose.yml to add --api.insecure=true # # Duplicate the command from docker-compose.yml to add --api.insecure=true
command: # command:
# Enable Docker in Traefik, so that it reads labels from Docker services # # Enable Docker in Traefik, so that it reads labels from Docker services
- --providers.docker # - --providers.docker
# Add a constraint to only use services with the label for this stack # # Add a constraint to only use services with the label for this stack
- --providers.docker.constraints=Label(`traefik.constraint-label`, `traefik-public`) # - --providers.docker.constraints=Label(`traefik.constraint-label`, `traefik-public`)
# Do not expose all Docker services, only the ones explicitly exposed # # Do not expose all Docker services, only the ones explicitly exposed
- --providers.docker.exposedbydefault=false # - --providers.docker.exposedbydefault=false
# Create an entrypoint "http" listening on port 80 # # Create an entrypoint "http" listening on port 80
- --entrypoints.http.address=:80 # - --entrypoints.http.address=:80
# Create an entrypoint "https" listening on port 443 # # Create an entrypoint "https" listening on port 443
- --entrypoints.https.address=:443 # - --entrypoints.https.address=:443
# Enable the access log, with HTTP requests # # Enable the access log, with HTTP requests
- --accesslog # - --accesslog
# Enable the Traefik log, for configurations and errors # # Enable the Traefik log, for configurations and errors
- --log # - --log
# Enable debug logging for local development # # Enable debug logging for local development
- --log.level=DEBUG # - --log.level=DEBUG
# Enable the Dashboard and API # # Enable the Dashboard and API
- --api # - --api
# Enable the Dashboard and API in insecure mode for local development # # Enable the Dashboard and API in insecure mode for local development
- --api.insecure=true # - --api.insecure=true
labels: # labels:
# Enable Traefik for this service, to make it available in the public network # # Enable Traefik for this service, to make it available in the public network
- traefik.enable=true # - traefik.enable=true
- traefik.constraint-label=traefik-public # - traefik.constraint-label=traefik-public
# Dummy https-redirect middleware that doesn't really redirect, only to # # Dummy https-redirect middleware that doesn't really redirect, only to
# allow running it locally # # allow running it locally
- traefik.http.middlewares.https-redirect.contenttype.autodetect=false # - traefik.http.middlewares.https-redirect.contenttype.autodetect=false
networks: # networks:
- traefik-public # - traefik-public
- default # - default
db: db:
restart: "no" restart: "no"
@@ -130,4 +130,4 @@ services:
networks: networks:
traefik-public: traefik-public:
# For local dev, don't expect an external Traefik network # For local dev, don't expect an external Traefik network
external: false external: true

13
tev.sh Normal file
View File

@@ -0,0 +1,13 @@
export USERNAME=dhm
export PASSWORD=123456dhm.
export HASHED_PASSWORD=$(openssl passwd -apr1 $PASSWORD)
echo $HASHED_PASSWORD
export DOMAIN=spacedot.top
export EMAIL=535597762@qq.com