forked from linagora/james-project
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
76 lines (70 loc) · 1.71 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
version: "3"
services:
apisix:
container_name: apisix.example.com
image: linagora/apisix:3.2.0-debian-javaplugin
volumes:
- ./apisix/conf/apisix.yaml:/usr/local/apisix/conf/apisix.yaml
- ./apisix/conf/config.yaml:/usr/local/apisix/conf/config.yaml
networks:
- james
ports:
- "9080:9080/tcp"
james:
depends_on:
- ldap
networks:
- james
image: apache/james:memory-latest
container_name: james
hostname: james.local
command:
- --generate-keystore
volumes:
- ./james/usersrepository.xml:/root/conf/usersrepository.xml
- ./james/jmap.properties:/root/conf/jmap.properties
ports:
- "8000:8000"
healthcheck:
test: ["CMD", "curl", "-f", "http://james:8000/domains"]
sso.example.com:
depends_on:
- ldap
image: quay.io/keycloak/keycloak:16.1.0
container_name: sso.example.com
volumes:
- ./keycloak/realm-oidc.json:/tmp/realm-oidc.json
ports:
- "8080:8080"
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
- KEYCLOAK_IMPORT=/tmp/realm-oidc.json
networks:
james:
aliases:
- keycloak
ldap:
container_name: ldap
image: osixia/openldap:1.5.0
ports:
- "389:389"
- "636:636"
command: [--copy-service]
volumes:
- ./ldap/populate.ldif:/container/service/slapd/assets/config/bootstrap/ldif/data.ldif
environment:
- LDAP_DOMAIN=localhost
networks:
- james
redis:
container_name: redis.example.com
image: bitnami/redis:7.0.4-debian-11-r25
environment:
- REDIS_PASSWORD=secret1
networks:
- james
ports:
- "6379:6379"
networks:
james: