|
| 1 | +version: "3.5" |
| 2 | +services: |
| 3 | + opensearch: |
| 4 | + container_name: temporal-opensearch |
| 5 | + environment: |
| 6 | + - discovery.type=single-node |
| 7 | + - OPENSEARCH_JAVA_OPTS=-Xms256m -Xmx256m |
| 8 | + - cluster.routing.allocation.disk.threshold_enabled=true |
| 9 | + - cluster.routing.allocation.disk.watermark.low=512mb |
| 10 | + - cluster.routing.allocation.disk.watermark.high=256mb |
| 11 | + - cluster.routing.allocation.disk.watermark.flood_stage=128mb |
| 12 | + - plugins.security.disabled=true |
| 13 | + image: opensearchproject/opensearch:${OPENSEARCH_VERSION} |
| 14 | + ulimits: |
| 15 | +# memlock: |
| 16 | +# soft: -1 # Set memlock to unlimited (no soft or hard limit) |
| 17 | +# hard: -1 |
| 18 | + nofile: |
| 19 | + soft: 65536 # Maximum number of open files for the opensearch user - set to at least 65536 |
| 20 | + hard: 65536 |
| 21 | + networks: |
| 22 | + - temporal-network |
| 23 | + expose: |
| 24 | + - 9200 |
| 25 | + volumes: |
| 26 | + - /usr/share/opensearch/data |
| 27 | + postgresql: |
| 28 | + container_name: temporal-postgresql |
| 29 | + environment: |
| 30 | + POSTGRES_PASSWORD: temporal |
| 31 | + POSTGRES_USER: temporal |
| 32 | + image: postgres:${POSTGRESQL_VERSION} |
| 33 | + networks: |
| 34 | + - temporal-network |
| 35 | + expose: |
| 36 | + - 5432 |
| 37 | + volumes: |
| 38 | + - /var/lib/postgresql/data |
| 39 | + temporal: |
| 40 | + container_name: temporal |
| 41 | + depends_on: |
| 42 | + - postgresql |
| 43 | + - opensearch |
| 44 | + environment: |
| 45 | + - DB=postgresql |
| 46 | + - DB_PORT=5432 |
| 47 | + - POSTGRES_USER=temporal |
| 48 | + - POSTGRES_PWD=temporal |
| 49 | + - POSTGRES_SEEDS=postgresql |
| 50 | + - DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml |
| 51 | + - ENABLE_ES=true |
| 52 | + - ES_SEEDS=opensearch |
| 53 | + - ES_VERSION=v7 |
| 54 | + image: temporalio/auto-setup:${TEMPORAL_VERSION} |
| 55 | + networks: |
| 56 | + - temporal-network |
| 57 | + ports: |
| 58 | + - 7233:7233 |
| 59 | + labels: |
| 60 | + kompose.volume.type: configMap |
| 61 | + volumes: |
| 62 | + - ./dynamicconfig:/etc/temporal/config/dynamicconfig |
| 63 | + temporal-admin-tools: |
| 64 | + container_name: temporal-admin-tools |
| 65 | + depends_on: |
| 66 | + - temporal |
| 67 | + environment: |
| 68 | + - TEMPORAL_CLI_ADDRESS=temporal:7233 |
| 69 | + image: temporalio/admin-tools:${TEMPORAL_VERSION} |
| 70 | + networks: |
| 71 | + - temporal-network |
| 72 | + stdin_open: true |
| 73 | + tty: true |
| 74 | + temporal-ui: |
| 75 | + container_name: temporal-ui |
| 76 | + depends_on: |
| 77 | + - temporal |
| 78 | + environment: |
| 79 | + - TEMPORAL_ADDRESS=temporal:7233 |
| 80 | + - TEMPORAL_CORS_ORIGINS=http://localhost:3000 |
| 81 | + image: temporalio/ui:${TEMPORAL_UI_VERSION} |
| 82 | + networks: |
| 83 | + - temporal-network |
| 84 | + ports: |
| 85 | + - 8080:8080 |
| 86 | +networks: |
| 87 | + temporal-network: |
| 88 | + driver: bridge |
| 89 | + name: temporal-network |
0 commit comments