create-seamless 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +7 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -227,8 +227,6 @@ Review each subproject for its specific license before deploying to production.
|
|
|
227
227
|
`;
|
|
228
228
|
|
|
229
229
|
const GENERATED_DOCKER_COMPOSE = `
|
|
230
|
-
version: "3.9"
|
|
231
|
-
|
|
232
230
|
services:
|
|
233
231
|
db:
|
|
234
232
|
image: postgres:16
|
|
@@ -250,14 +248,16 @@ services:
|
|
|
250
248
|
|
|
251
249
|
auth:
|
|
252
250
|
container_name: seamless-auth
|
|
253
|
-
build:
|
|
251
|
+
build:
|
|
252
|
+
context: ./auth
|
|
253
|
+
dockerfile: Dockerfile.dev
|
|
254
254
|
ports:
|
|
255
255
|
- "${authPort}:${authPort}"
|
|
256
256
|
env_file:
|
|
257
257
|
- ./auth/.env
|
|
258
258
|
environment:
|
|
259
259
|
DB_HOST: db
|
|
260
|
-
ISSUER
|
|
260
|
+
ISSUER: http://auth:${authPort}
|
|
261
261
|
volumes:
|
|
262
262
|
- ./auth:/app
|
|
263
263
|
- /app/node_modules
|
|
@@ -273,7 +273,7 @@ services:
|
|
|
273
273
|
env_file:
|
|
274
274
|
- ./api/.env
|
|
275
275
|
environment:
|
|
276
|
-
AUTH_SERVER_URL
|
|
276
|
+
AUTH_SERVER_URL: http://auth:${authPort}
|
|
277
277
|
volumes:
|
|
278
278
|
- ./api:/app
|
|
279
279
|
- /app/node_modules
|
|
@@ -405,7 +405,6 @@ async function downloadRepo(repo, dest) {
|
|
|
405
405
|
DB_USER: "myuser",
|
|
406
406
|
DB_PASSWORD: "mypassword",
|
|
407
407
|
|
|
408
|
-
DB_NAME: "seamless",
|
|
409
408
|
SQL_LOGGING: "false",
|
|
410
409
|
});
|
|
411
410
|
}
|
|
@@ -441,8 +440,8 @@ async function downloadRepo(repo, dest) {
|
|
|
441
440
|
fs.writeFileSync(
|
|
442
441
|
path.join(pgDir, "init.sql"),
|
|
443
442
|
`
|
|
444
|
-
|
|
445
|
-
|
|
443
|
+
CREATE DATABASE seamless_auth;
|
|
444
|
+
CREATE DATABASE seamless_api;
|
|
446
445
|
`,
|
|
447
446
|
);
|
|
448
447
|
|