-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
81 lines (76 loc) · 2.1 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
version: '3.7'
services:
web:
build:
context: platform-hub-web
dockerfile: web.Dockerfile
volumes:
- ./platform-hub-web:/app
- /app/node_modules
ports:
- 3000:3000
- 3001:3001
phub-auth-proxy:
image: quay.io/ukhomeofficedigital/go-keycloak-proxy:v2.0.3
entrypoint: >
sh -c "/opt/keycloak-proxy
--config=/opt/data/config.yml
--client-id=$$KCPROXY_CLIENT_ID
--client-secret=$$KCPROXY_CLIENT_SECRET
--encryption-key=$$KCPROXY_ENCRYPTION_KEY
--upstream-url=$$KCPROXY_UPSTREAM_URL"
env_file:
- ./platform-hub-auth-proxy/local/.env.local
ports:
- 8080:8080
volumes:
- ./platform-hub-auth-proxy/local/data:/opt/data
platform-hub-db:
container_name: platform-hub-db
image: postgres:12.5
healthcheck:
test: ["CMD-SHELL", "pg_isready -U phub -d phub_development"]
interval: 1s
timeout: 3s
retries: 10
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_USER=phub
- POSTGRES_PASSWORD=phub_password
- POSTGRES_DB=phub_development
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
platform-hub-elasticsearch:
container_name: phub-elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:5.5.1
volumes:
- esdata:/usr/share/elasticsearch/data
environment:
- discovery.type=single-node
- cluster.name=5.5.1
- bootstrap.memory_lock=true
- xpack.security.enabled=false
- xpack.monitoring.enabled=false
- xpack.ml.enabled=false
- xpack.watcher.enabled=false
- xpack.graph.enabled=false
- ES_JAVA_OPTS=-Xms512m -Xmx512m
ports:
- 9200:9200
api:
build:
context: platform-hub-api
dockerfile: api.Dockerfile
command: sh -c "bin/rails db:setup && bundle exec rails s -b '0.0.0.0'"
volumes:
- ./platform-hub-api/.env.local:/platform-hub-api/.env.local
depends_on:
platform-hub-db:
condition: service_healthy
ports:
- 8081:8081
volumes:
pgdata:
esdata: