-
Notifications
You must be signed in to change notification settings - Fork 29
chore: add Docker local development environment #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
753d08b
chore: add Docker local development environment
SparkZou 5d0f4e5
Merge remote-tracking branch 'origin/main' into feature/1203-docker-l…
SparkZou d40d004
fix: align docker-compose configuration with PR description
SparkZou 1f7b22c
feat: add separate temporal-ui service and temporal database
SparkZou 0b93057
docs: update comments and README to reflect actual configuration
SparkZou 1dbfe5c
docs: fix PostgreSQL connection string format in README
SparkZou 7ec3bbc
docs: clarify docker compose starts infrastructure only, not API server
SparkZou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| services: | ||
| # PostgreSQL with pgvector extension | ||
| postgres: | ||
| image: pgvector/pgvector:pg16 | ||
| environment: | ||
| POSTGRES_USER: ${POSTGRES_USER:-postgres} | ||
| POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres} | ||
| POSTGRES_DB: ${POSTGRES_DB:-memu} | ||
| ports: | ||
| - "5432:5432" | ||
| volumes: | ||
| - postgres-data:/var/lib/postgresql/data | ||
| healthcheck: | ||
| test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"] | ||
| interval: 5s | ||
| timeout: 5s | ||
| retries: 5 | ||
| networks: | ||
| - memu-network | ||
|
|
||
| # Temporal server | ||
| # Note: Temporal shares the same PostgreSQL instance as the main app but uses | ||
| # a separate database (`TEMPORAL_DB`, default: `temporal`) from the app's | ||
| # database (`POSTGRES_DB`, default: `memu`). | ||
| # TODO: For production, consider using a separate PostgreSQL instance for Temporal | ||
| # or at minimum keep Temporal and the app in separate databases as configured here. | ||
| # Pointing both services at the same database can cause schema conflicts and is | ||
| # not recommended. | ||
| temporal: | ||
| image: temporalio/auto-setup:1.25.1 | ||
| depends_on: | ||
| postgres: | ||
| condition: service_healthy | ||
| environment: | ||
| - DB=postgresql | ||
| - DB_PORT=5432 | ||
|
SparkZou marked this conversation as resolved.
|
||
| - POSTGRES_USER=${POSTGRES_USER:-postgres} | ||
| - POSTGRES_PWD=${POSTGRES_PASSWORD:-postgres} | ||
| - POSTGRES_SEEDS=postgres | ||
| - POSTGRES_DB=${TEMPORAL_DB:-temporal} | ||
| - DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml | ||
|
SparkZou marked this conversation as resolved.
|
||
| ports: | ||
| - "7233:7233" # Temporal gRPC | ||
| networks: | ||
| - memu-network | ||
|
|
||
| # Temporal Web UI | ||
| temporal-ui: | ||
| image: temporalio/ui:2.31.2 | ||
| depends_on: | ||
| - temporal | ||
| environment: | ||
| - TEMPORAL_ADDRESS=temporal:7233 | ||
| ports: | ||
| - "8088:8080" # Temporal Web UI | ||
| networks: | ||
|
SparkZou marked this conversation as resolved.
|
||
| - memu-network | ||
|
|
||
| volumes: | ||
| postgres-data: | ||
| driver: local | ||
|
|
||
| networks: | ||
| memu-network: | ||
| driver: bridge | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.