-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-prod-harness.yml
148 lines (124 loc) · 3.78 KB
/
docker-compose-prod-harness.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# docker compose file provided for build/test on local machine
# also provides definitive list of required environment variables.
services:
pg:
image: postgres:latest
restart: always
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: ukraine
POSTGRES_USER: ukraine
ports:
- 5432:5432
app:
build:
dockerfile: Dockerfile-prod
context: .
depends_on:
- pg
- redis
- sidekiq
- s3
environment:
INSTANCE_NAME: ukraine-sponsor-resettlement-prodharness
RAILS_ENV: production
RAILS_LOG_TO_STDOUT: yes
RAILS_MASTER_KEY: xxxxxxxx
RAILS_SERVE_STATIC_FILES: yes
AWS_ACCESS_KEY_ID: xxxxxxxx
AWS_SECRET_ACCESS_KEY: xxxxxxxx
AWS_BUCKET_NAME: xxxxxxxx
AWS_REGION: eu-west-2
DB_DATABASE: ukraine
DB_HOST: pg
DB_PASSWORD: password
DB_USERNAME: ukraine
REDIS_URL: redis://redis/
GOVUK_NOTIFY_API_KEY: xxxxxxxx
GOVUK_NOTIFY_SMS_API_KEY: xxxxxxxx
ADDITIONAL_INFO_CONFIRMATION_TEMPLATE_ID: xxxxxxxx
EXPRESSION_OF_INTEREST_CONFIRMATION_TEMPLATE_ID: xxxxxxxx
INDIVIDUAL_CONFIRMATION_TEMPLATE_ID: xxxxxxxx
ORGANISATION_CONFIRMATION_TEMPLATE_ID: xxxxxxxx
SAVE_AND_RETURN_TEMPLATE_ID: xxxxxxxx
SPONSOR_CONFIRMATION_TEMPLATE_ID: xxxxxxxx
SENTRY_DSN: xxxxxxxx
REMOTE_API_TOKEN_UAM: xxxxxxxx
REMOTE_API_TOKEN: xxxxxxxx
REMOTE_API_URL: xxxxxxxx
CONSENT_UPLOAD_USER: xxxxxxxx
CONSENT_UPLOAD_PASS: xxxxxxxx
UAM_FILE_UPLOAD_API_TOKEN: xxxxxxxx
UAM_FILE_UPLOAD_API_URL: xxxxxxxx
UAM_FOUNDRY_ATTACHMENT_ASSIGN_API_URL: xxxxxxxx
EOI_GA_TRACKING_CODE: xxxxxxxx
EOI_GA4_TRACKING_CODE: xxxxxxxx
UAM_GA_TRACKING_CODE: xxxxxxxx
UAM_GA4_TRACKING_CODE: xxxxxxxx
ports:
- 8080:8080
sidekiq:
build:
dockerfile: Dockerfile-prod
context: .
depends_on:
- pg
- redis
- mock-api
environment:
INSTANCE_NAME: ukraine-sponsor-resettlement-prodharness
RAILS_ENV: production
RAILS_LOG_TO_STDOUT: yes
RAILS_MASTER_KEY: xxxxxxxx
RAILS_SERVE_STATIC_FILES: yes
AWS_ACCESS_KEY_ID: xxxxxxxx
AWS_SECRET_ACCESS_KEY: xxxxxxxx
AWS_BUCKET_NAME: xxxxxxxx
AWS_REGION: eu-west-2
DB_DATABASE: ukraine
DB_HOST: pg
DB_PASSWORD: password
DB_USERNAME: ukraine
REDIS_URL: redis://redis/
GOVUK_NOTIFY_API_KEY: xxxxxxxx
GOVUK_NOTIFY_SMS_API_KEY: xxxxxxxx
ADDITIONAL_INFO_CONFIRMATION_TEMPLATE_ID: xxxxxxxx
EXPRESSION_OF_INTEREST_CONFIRMATION_TEMPLATE_ID: xxxxxxxx
INDIVIDUAL_CONFIRMATION_TEMPLATE_ID: xxxxxxxx
ORGANISATION_CONFIRMATION_TEMPLATE_ID: xxxxxxxx
SAVE_AND_RETURN_TEMPLATE_ID: xxxxxxxx
SPONSOR_CONFIRMATION_TEMPLATE_ID: xxxxxxxx
SENTRY_DSN: xxxxxxxx
REMOTE_API_TOKEN_UAM: xxxxxxxx
REMOTE_API_TOKEN: xxxxxxxx
REMOTE_API_URL: https://levellingup.palantirfoundry.co.uk/secure-upload/api/blobs/json
CONSENT_UPLOAD_USER: xxxxxxxx
CONSENT_UPLOAD_PASS: xxxxxxxx
UAM_FILE_UPLOAD_API_TOKEN: xxxxxxxx
UAM_FILE_UPLOAD_API_URL: xxxxxxxx
UAM_FOUNDRY_ATTACHMENT_ASSIGN_API_URL: xxxxxxxx
EOI_GA_TRACKING_CODE: xxxxxxxx
EOI_GA4_TRACKING_CODE: xxxxxxxx
UAM_GA_TRACKING_CODE: xxxxxxxx
UAM_GA4_TRACKING_CODE: xxxxxxxx
command: bundle exec sidekiq
redis:
image: redis
s3:
image: localstack/localstack:latest
container_name: localstack-s3
environment:
- SERVICES=s3:5002
- DEFAULT_REGION=eu-west-2
- DATA_DIR=/tmp/localstack/data
ports:
- 5002:5002
- 9999:8080
volumes:
- .:/tmp/localstack
mock-api:
build:
dockerfile: Dockerfile
context: http-mock-server
ports:
- 8081:8081