feat: Add Temporal and Windmill services with configuration files

- Implemented Temporal service with Docker Compose, including PostgreSQL setup and environment variables for configuration.
- Added Temporal README and Chinese translation for documentation.
- Introduced Windmill service with Docker Compose, including PostgreSQL setup and environment variables for configuration.
- Added Windmill README and Chinese translation for documentation.
- Updated MongoDB configurations to use host.docker.internal for better compatibility.
This commit is contained in:
Sun-ZhenXing
2025-11-01 19:40:54 +08:00
parent 843ebc24a1
commit 0f54723be1
22 changed files with 2805 additions and 6 deletions

View File

@@ -31,6 +31,8 @@ x-mongo: &mongo
timeout: 3s
retries: 10
start_period: 30s
extra_hosts:
- "host.docker.internal:host-gateway"
deploy:
resources:
limits:
@@ -75,7 +77,7 @@ services:
MONGO_PORT_1: ${MONGO_PORT_OVERRIDE_1:-27017}
MONGO_PORT_2: ${MONGO_PORT_OVERRIDE_2:-27018}
MONGO_PORT_3: ${MONGO_PORT_OVERRIDE_3:-27019}
MONGO_HOST: ${MONGO_HOST:-mongo1}
MONGO_HOST: ${MONGO_HOST:-host.docker.internal}
volumes:
- ./secrets/rs0.key:/data/rs0.key:ro
entrypoint:
@@ -95,9 +97,9 @@ services:
const config = {
_id: '$${MONGO_REPLICA_SET_NAME}',
members: [
{ _id: 0, host: 'mongo1:27017' },
{ _id: 1, host: 'mongo2:27017' },
{ _id: 2, host: 'mongo3:27017' }
{ _id: 0, host: '$${MONGO_HOST}:$${MONGO_PORT_1}' },
{ _id: 1, host: '$${MONGO_HOST}:$${MONGO_PORT_2}' },
{ _id: 2, host: '$${MONGO_HOST}:$${MONGO_PORT_3}' },
]
};