Skip to content

Commit bb0ffae

Browse files
chore(docker): update n8n and Temporal service dependencies in production (#17)
- Removed PostgreSQL dependency for both n8n and Temporal services in `docker-compose.prod.yml`. - Removed the OpenSearch service configuration to streamline the setup further. These changes enhance the reliability of service dependencies in the production environment.
1 parent 14d3a4b commit bb0ffae

1 file changed

Lines changed: 4 additions & 15 deletions

File tree

docker-compose.prod.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
services:
22
n8n:
3-
depends_on: !reset null
3+
depends_on:
4+
postgresql: !reset null
45
environment:
56
- WEBHOOK_URL=${N8N_WEBHOOK_URL:?N8N_WEBHOOK_URL is required}
67
- N8N_ENCRYPTION_KEY=${N8N_ENCRYPTION_KEY:?N8N_ENCRYPTION_KEY is required}
@@ -10,25 +11,19 @@ services:
1011
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB_N8N:?POSTGRES_DB_N8N is required}
1112
- DB_POSTGRESDB_USER=${POSTGRES_USER_N8N:?POSTGRES_USER_N8N is required}
1213
- DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD_N8N:?POSTGRES_PASSWORD_N8N is required}
13-
opensearch:
14-
environment:
15-
- OPENSEARCH_PORT=${OPENSEARCH_PORT:?OPENSEARCH_PORT is required}
1614

1715
postgresql: !reset null
1816

1917
temporal:
20-
depends_on: !reset null
18+
depends_on:
19+
postgresql: !reset null
2120
environment:
2221
- TEMPORAL_PORT=${TEMPORAL_PORT:?TEMPORAL_PORT is required}
2322
- POSTGRES_SEEDS=${POSTGRES_HOST:?POSTGRES_HOST is required}
2423
- DB_PORT=${POSTGRES_PORT:-5432}
2524
- DBNAME=${POSTGRES_DB_TEMPORAL:?POSTGRES_DB_TEMPORAL is required}
2625
- POSTGRES_USER=${POSTGRES_USER_TEMPORAL:?POSTGRES_USER_TEMPORAL is required}
2726
- POSTGRES_PWD=${POSTGRES_PASSWORD_TEMPORAL:?POSTGRES_PASSWORD_TEMPORAL is required}
28-
- ES_SEEDS=opensearch
29-
- ES_VERSION=v7
30-
- DB=postgresql
31-
- ENABLE_ES=true
3227

3328
temporal-ui:
3429
environment:
@@ -107,9 +102,3 @@ volumes:
107102
type: none
108103
o: bind
109104
device: /data/n8n
110-
opensearch-data:
111-
driver: local
112-
driver_opts:
113-
type: none
114-
o: bind
115-
device: /data/opensearch

0 commit comments

Comments
 (0)