Skip to content

Commit 221591a

Browse files
committed
hotfix: added init containers in production
1 parent 3166058 commit 221591a

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

k8s/production/aztec-listener/deployment.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,23 @@ spec:
1818
spec:
1919
imagePullSecrets:
2020
- name: do-registry
21+
initContainers:
22+
- name: run-migrations
23+
image: aztec-listener:latest
24+
command: ["yarn", run, "migrate"]
25+
env:
26+
- name: NODE_ENV
27+
value: "development"
28+
- name: POSTGRES_IP
29+
value: "postgresql"
30+
- name: POSTGRES_PORT
31+
value: "5432"
32+
- name: POSTGRES_DB_NAME
33+
value: "aztec_listener"
34+
- name: POSTGRES_ADMIN
35+
value: "admin"
36+
- name: POSTGRES_PASSWORD
37+
value: "secret-local-password"
2138
containers:
2239
- image: registry.digitalocean.com/aztlan-containers/aztec-listener:latest
2340
resources:

k8s/production/explorer-api/deployment.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,23 @@ spec:
1818
spec:
1919
imagePullSecrets:
2020
- name: do-registry
21+
initContainers:
22+
- name: run-migrations
23+
image: explorer-api:latest
24+
command: ["yarn", run, "migrate"]
25+
env:
26+
- name: NODE_ENV
27+
value: "development"
28+
- name: POSTGRES_IP
29+
value: "postgresql"
30+
- name: POSTGRES_PORT
31+
value: "5432"
32+
- name: POSTGRES_DB_NAME
33+
value: "explorer_api"
34+
- name: POSTGRES_ADMIN
35+
value: "admin"
36+
- name: POSTGRES_PASSWORD
37+
value: "secret-local-password"
2138
containers:
2239
- image: registry.digitalocean.com/aztlan-containers/explorer-api:latest
2340
resources:

0 commit comments

Comments
 (0)