-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 1.25 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
version: '3.4'
services:
metadata-db:
image: postgres:12.4-alpine
restart: always
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
POSTGRES_DB: metadata_local
metadata-app:
build:
context: .
args:
BUNDLE_ARGS: ''
tty: true
stdin_open: true
ports:
- 8080:3000
environment:
DATABASE_URL: "postgres://postgres:password@metadata-db/metadata_local"
RAILS_ENV: test
SERVICE_TOKEN_CACHE_ROOT_URL: 'http://metadata-app-service-token-cache-app:3000'
MAX_IAT_SKEW_SECONDS: '60'
links:
- metadata-db
- metadata-app-service-token-cache-app
metadata-app-service-token-cache-app:
container_name: metadata-app-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: metadata-app-service-token-cache-redis
SERVICE_TOKEN_CACHE_TTL: 999999
depends_on:
- metadata-app-service-token-cache-redis
ports:
- 3004:3000
metadata-app-service-token-cache-redis:
container_name: metadata-app-service-token-cache-redis
image: redis:5.0.6-alpine