-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
65 lines (60 loc) · 1.53 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
version: "3"
services:
#######################################
# Reverse proxy (Traefik)
#######################################
traefik:
image: "traefik:1.7"
command: -c /dev/null --web --docker --logLevel=DEBUG
ports:
- "${PORT:-80}:80"
- "${RPROXY_PORT:-8080}:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
- "traefik.enable=false"
#######################################
# Redis
#######################################
redis:
image: "redis:4"
restart: always
labels:
- "traefik.enable=false"
#######################################
# Database (Mongo)
#######################################
mongo:
image: "mongo:3"
restart: always
labels:
- "traefik.enable=false"
#######################################
# Searchengine (ElasticSearch)
#######################################
elasticsearch:
image: "elasticsearch:5"
restart: always
environment:
ES_JAVA_OPTS: "-Xms256m -Xmx256m"
labels:
- "traefik.enable=false"
#######################################
# IAM (Keycloak)
#######################################
keycloak:
image: "jboss/keycloak:3.4.3.Final"
restart: always
env_file: etc/keycloak.env
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/auth/"]
interval: 5s
timeout: 2s
retries: 15
labels:
- "traefik.port=8080"
- "traefik.frontend.rule=PathPrefix:/auth"
volumes:
conf-data:
www-data:
storage-data: