Skip to content

Commit 19b7505

Browse files
committed
inifinite loop fix
1 parent 57bcde5 commit 19b7505

17 files changed

Lines changed: 526 additions & 617 deletions

docker-compose.dev.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
# docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
44
version: "3.9"
55
services:
6+
designer:
7+
volumes:
8+
- /usr/src/app/node_modules
9+
- /usr/src/app/model/node_modules
10+
- /usr/src/app/model/dist
11+
- /usr/src/app/designer/node_modules
12+
- /usr/src/app/designer/dist
13+
- /usr/src/app/runner/node_modules
14+
- /usr/src/app/runner/dist
15+
- ./designer:/usr/src/app/designer:delegated
16+
command: yarn designer dev
617
runner:
718
volumes:
819
- /usr/src/app/node_modules

docker-compose.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@
22
# For local development environment please see docker-compose.dev.yml
33
version: "3.9"
44
services:
5+
designer:
6+
container_name: designer
7+
image: digital-form-builder-designer
8+
build:
9+
context: .
10+
dockerfile: ./designer/Dockerfile
11+
ports:
12+
- "3000:3000"
13+
environment:
14+
- CHOKIDAR_USEPOLLING=true
15+
- REDIS_HOST=redis
16+
- REDIS_PORT=6379
17+
- REDIS_PASSWORD=123abc
18+
- sandbox=true
19+
- PREVIEW_URL=http://localhost:3009
20+
- PUBLISH_URL=http://runner:3009
21+
- LAST_COMMIT
22+
- LAST_TAG
23+
command: yarn designer start
24+
depends_on:
25+
- runner
526
runner:
627
container_name: runner
728
image: digital-form-builder-runner

runner/config/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module.exports = {
6969
confirmationSessionTimeout: 20 * minute,
7070
paymentSessionTimeout: 90 * minute, // GOV.UK Pay sessions are 90 minutes. It is possible a user takes longer than 20 minutes to complete a payment.
7171
httpsCookieSecureAttribute: true, // Assumed usage of HTTPS. Set to false if you are using HTTP.
72-
sessionCookiePassword: "qwebriqohpisajfpasjfpojafsjaspfas",
72+
sessionCookiePassword: "${SessionCookies.Password}",
7373
redisHost: "${Redis.Host}",
7474
redisPort: 6379,
7575
redisPassword: "${Redis.Password}", // This should be set if you are deploying replicas - SET AS SECRET

0 commit comments

Comments
 (0)