@@ -87,8 +87,8 @@ services:
8787 - PANEL_PASS=${PANEL_PASS}
8888 - BACKEND_USER=${BACKEND_USER}
8989 - SMTP_PASS=${SMTP_PASS}
90- - DB_USER=${DB_USER}
91- - DB_PASS=${DB_PASS}
90+ - DB_USER=${DB_USER:-opex }
91+ - DB_PASS=${DB_PASS:-hiopex }
9292 healthcheck :
9393 retries : 5
9494 cap_add :
@@ -124,8 +124,8 @@ services:
124124 postgres-accountant :
125125 image : postgres:14-alpine
126126 environment :
127- - POSTGRES_USER=opex
128- - POSTGRES_PASSWORD=hiopex
127+ - POSTGRES_USER=${DB_USER:- opex}
128+ - POSTGRES_PASSWORD=${DB_PASS:- hiopex}
129129 - POSTGRES_DB=opex_accountant
130130 volumes :
131131 - $DATA/accountant-data:/var/lib/postgresql/data/
@@ -149,8 +149,8 @@ services:
149149 postgres-eventlog :
150150 image : postgres:14-alpine
151151 environment :
152- - POSTGRES_USER=opex
153- - POSTGRES_PASSWORD=hiopex
152+ - POSTGRES_USER=${DB_USER:- opex}
153+ - POSTGRES_PASSWORD=${DB_PASS:- hiopex}
154154 - POSTGRES_DB=opex_eventlog
155155 volumes :
156156 - $DATA/eventlog-data:/var/lib/postgresql/data/
@@ -159,8 +159,8 @@ services:
159159 postgres-auth :
160160 image : postgres:14-alpine
161161 environment :
162- - POSTGRES_USER=opex
163- - POSTGRES_PASSWORD=hiopex
162+ - POSTGRES_USER=${DB_USER:- opex}
163+ - POSTGRES_PASSWORD=${DB_PASS:- hiopex}
164164 - POSTGRES_DB=opex_auth
165165 volumes :
166166 - $DATA/auth-data:/var/lib/postgresql/data/
@@ -172,8 +172,8 @@ services:
172172 postgres-wallet :
173173 image : postgres:14-alpine
174174 environment :
175- - POSTGRES_USER=opex
176- - POSTGRES_PASSWORD=hiopex
175+ - POSTGRES_USER=${DB_USER:- opex}
176+ - POSTGRES_PASSWORD=${DB_PASS:- hiopex}
177177 - POSTGRES_DB=opex_wallet
178178 volumes :
179179 - $DATA/wallet-data:/var/lib/postgresql/data/
@@ -185,8 +185,8 @@ services:
185185 postgres-api :
186186 image : postgres:14-alpine
187187 environment :
188- - POSTGRES_USER=opex
189- - POSTGRES_PASSWORD=hiopex
188+ - POSTGRES_USER=${DB_USER:- opex}
189+ - POSTGRES_PASSWORD=${DB_PASS:- hiopex}
190190 - POSTGRES_DB=opex_api
191191 volumes :
192192 - $DATA/api-data:/var/lib/postgresql/data/
@@ -198,8 +198,8 @@ services:
198198 postgres-bc-gateway :
199199 image : postgres:14-alpine
200200 environment :
201- - POSTGRES_USER=opex
202- - POSTGRES_PASSWORD=hiopex
201+ - POSTGRES_USER=${DB_USER:- opex}
202+ - POSTGRES_PASSWORD=${DB_PASS:- hiopex}
203203 - POSTGRES_DB=opex_bc_gateway
204204 volumes :
205205 - $DATA/bc-gateway-data:/var/lib/postgresql/data/
0 commit comments