This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
108 lines (101 loc) · 2.79 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: "3"
services:
rabbit:
image: rabbitmq:3-management
ports:
- "5672:5672"
- "15672:15672"
networks:
- eq-env
environment:
RABBITMQ_DEFAULT_USER: digitaleq
RABBITMQ_DEFAULT_PASS: digitaleq
db:
image: postgres:9.4
environment:
POSTGRES_PASSWORD: digitaleq
POSTGRES_USER: digitaleq
POSTGRES_DB: runner
ports:
- "5433:5432"
networks:
- eq-env
pubsub:
image: messagebird/gcloud-pubsub-emulator:latest
environment:
PUBSUB_PROJECT1: my-test-project,test-topic-id
ports:
- "8681:8681"
networks:
- eq-env
# eq-survey-register:
# image: onsdigital/eq-survey-register:latest
# restart: always
# networks:
# - eq-env
# ports:
# - "8080:8080"
# environment:
# AWS_REGION: eu-west-1
eq-survey-runner:
image: onsdigital/eq-survey-runner
build: ./
environment:
EQ_DEV_MODE: "True"
EQ_DEVELOPER_LOGGING: "True"
EQ_ENABLE_SECURE_SESSION_COOKIE: "False"
EQ_ENABLE_LIVE_RELOAD: "True"
EQ_SERVER_SIDE_STORAGE_DATABASE_HOST: db
EQ_SERVER_SIDE_STORAGE_DATABASE_NAME: runner
EQ_RABBITMQ_HOST: rabbit
EQ_RABBITMQ_HOST_SECONDARY: rabbit
EQ_SECRETS_FILE: docker-secrets.yml
EQ_KEYS_FILE: docker-keys.yml
EQ_DYNAMODB_ENDPOINT: http://eq-docker-dynamodb:8000
EQ_SUBMITTED_RESPONSES_TABLE_NAME: dev-submitted-responses
EQ_QUESTIONNAIRE_STATE_TABLE_NAME: dev-questionnaire-state
EQ_QUESTIONNAIRE_STATE_DYNAMO_READ: "True"
EQ_QUESTIONNAIRE_STATE_DYNAMO_WRITE: "True"
EQ_SESSION_TABLE_NAME: dev-eq-session
EQ_USED_JTI_CLAIM_TABLE_NAME: dev-used-jti-claim
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID:-dummy}"
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY:-dummy}"
EQ_GTM_ID: "${EQ_GTM_ID:-dummy}"
EQ_GTM_ENV_ID: "${EQ_GTM_ENV_ID:-dummy}"
EQ_PUBSUB_ENABLED: "True"
EQ_PUBLISHER_BACKEND: pubsub
EQ_PUBSUB_PROJECT_ID: my-test-project
EQ_PUBSUB_TOPIC_ID: "test-topic-id"
PUBSUB_EMULATOR_HOST: host.docker.internal:8681
restart: always
depends_on:
- db
- rabbit
- eq-docker-dynamodb
networks:
- eq-env
ports:
- "5000:5000"
go-launch-a-survey:
image: onsdigital/go-launch-a-survey:latest
environment:
SURVEY_RUNNER_URL: http://localhost:5000
SURVEY_RUNNER_SCHEMA_URL: http://eq-survey-runner:5000
SURVEY_REGISTER_URL: http://eq-survey-register:8080/
restart: always
depends_on:
- eq-survey-runner
networks:
- eq-env
ports:
- "8000:8000"
eq-docker-dynamodb:
image: onsdigital/eq-docker-dynamodb:latest
restart: always
networks:
- eq-env
ports:
- "6060:8000"
networks:
eq-env:
driver: bridge