-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
83 lines (77 loc) · 4.21 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
version: '3.4'
services:
editor-db:
image: postgres:12.4-alpine
restart: always
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
POSTGRES_DB: editor_local
editor-app:
build:
context: .
dockerfile: ./docker/web/Dockerfile
args:
BUNDLE_ARGS: ''
tty: true
stdin_open: true
ports:
- 9090:3000
environment:
RAILS_ENV: development
DATABASE_URL: "postgres://postgres:password@editor-db/editor_local"
RAILS_LOG_TO_STDOUT: 'true'
METADATA_API_URL: "http://editor-metadata-app:3000/"
PLATFORM_ENV: "local"
# Keys below are all fake and can be committed to git
ENCODED_PRIVATE_KEY: "-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEA+OtquVq4iSKV6xTibO3snW70AK0/ILG/vDt8KNCQNf/411D7\nh+F3Kpw+vNANfHdJTfJUV4/dYz5HHsAxAaG8qyHiNycy9cNsHoRCold5Zp8iEBkS\ncXOSh32qKD6e0brwJvpyv0QcHWfKZz46PBm6TUxrC6z9nwiePQX/sryFhpzX8sL7\nD09Qwc1c/42PHhLkxvcCioHhj33zT+YOCNvI5RyYPG6lKvn1QSKvSJ+zoAnwP7R7\nL7c/QixADzleAq7HNEhE8p0T0OVegWa85Ox7fK9j/vZw9bFYOK1CVNQcf+VGh2Fa\ngs/7D9T0nrhQ3xKxpKvnfzVoqga38V7gWZyt8QIDAQABAoIBAQDtpYyh49w0iQGK\ni8jU6J4zfB+WmdCgPTNp2XzjVqOn+ncv0lAiXX6w/rTi/NszTot80HP3mRFrU6UA\n1cqz3R9MXzAjKdh8TJPn2qvn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LmDbZnSUQnMafUNgNy\nK0VWsiR2LxJCBgiw0evtz+W2GOYpOhgpep5AjLITla5FsZUSNI3c\n-----END RSA PRIVATE KEY-----"
ENCRYPTION_KEY: 'b*\xA9g,\x0FS\xD4\x7F_\xFA\xF0\xBD\x19\xA3\xEB\x1E\xA5(E)@\xA3\xC5\xB2\xD4\xF0\x92\x10\x1F\xBB\xA5'
ENCRYPTION_SALT: '~\xE7\xD2\xA3\x15\xC3\xCFzQ:\xDC\x94\xC4\x18|\xF3\x99\x12\xEFt\xFBk*\xA9\x03I\xFB\xA2\x87\xE9\x82v'
SECRET_KEY_BASE: "2de1e1ddc4dc9eebb238d35d6b131cd76c481adb6371ded658fa259411379431391e9431e6257d1ea9dccb80df5d693904b6a4ed3bec7984647fd79c86bf4db5"
PUBLISH_FOR_REVIEW_USERNAME: 'mojforms'
PUBLISH_FOR_REVIEW_PASSWORD: 'mojforms'
depends_on:
- editor-db
- editor-metadata-app
editor-metadata-db:
image: postgres:12.4-alpine
restart: always
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
POSTGRES_DB: metadata_local
editor-metadata-app:
build:
context: https://github.com/ministryofjustice/fb-metadata-api.git#main
args:
BUNDLE_ARGS: ''
tty: true
stdin_open: true
ports:
- 9091:3000
environment:
DATABASE_URL: "postgres://postgres:password@editor-metadata-db/metadata_local"
RAILS_ENV: test
SERVICE_TOKEN_CACHE_ROOT_URL: 'http://editor-service-token-cache-app:3000'
MAX_IAT_SKEW_SECONDS: '60'
RAILS_LOG_TO_STDOUT: 'true'
depends_on:
- editor-metadata-db
- editor-service-token-cache-app
editor-service-token-cache-app:
container_name: editor-service-token-cache-app
build:
context: https://github.com/ministryofjustice/fb-service-token-cache.git#main
environment:
SENTRY_DSN: sentry-dsn
RAILS_ENV: test
RAILS_LOG_TO_STDOUT: 'true'
REDIS_URL: editor-service-token-cache-redis
SERVICE_TOKEN_CACHE_TTL: 999999
depends_on:
- editor-service-token-cache-redis
ports:
- 9092:3000
editor-service-token-cache-redis:
container_name: editor-service-token-cache-redis
image: redis:5.0.6-alpine