forked from imulab/go-scim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
107 lines (101 loc) · 2.82 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: "3"
services:
mediainit:
image: alpine:3.10
entrypoint: /bin/sh -c "chown -v nobody:nogroup /data/db && chmod -v 777 /data/db"
container_name: mediainit
restart: "no"
volumes:
- 'mongo_data:/data/db'
db:
image: "bitnami/mongodb:latest"
environment:
- MONGODB_EXTRA_FLAGS=--wiredTigerCacheSizeGB=2 --bind_ip_all
- MONGODB_USERNAME=user
- MONGODB_PASSWORD=password123
- MONGODB_DATABASE=scim_database
volumes:
- 'mongo_data:/data/db'
ports:
- '27017:27017'
networks:
- app-tier
rabbit:
image: "bitnami/rabbitmq:latest"
environment:
- RABBITMQ_USERNAME=user
- RABBITMQ_PASSWORD=password123
- RABBITMQ_NODE_NAME=user@rabbit
ports:
- '4369:4369'
- '5672:5672'
- '25672:25672'
- '15672:15672'
networks:
- app-tier
volumes:
- 'rabbitmq_data:/bitnami'
group:
image: "scim:latest"
build:
context: .
command: ["/usr/bin/scim", "group-sync"]
environment:
- REQUEUE_LIMIT=1
- MONGO_HOST=db
- MONGO_PORT=27017
- MONGO_USERNAME=user
- MONGO_PASSWORD=password123
- MONGO_DATABASE=scim_database
- MONGO_OPT=authMechanism=SCRAM-SHA-1
- RABBIT_HOST=rabbit
- RABBIT_PORT=5672
- RABBIT_USERNAME=user
- RABBIT_PASSWORD=password123
- SERVICE_PROVIDER_CONFIG=/usr/share/scim/public/service_provider_config.json
- SCHEMAS_DIR=/usr/share/scim/public/schemas
- USER_RESOURCE_TYPE=/usr/share/scim/public/resource_types/user_resource_type.json
- GROUP_RESOURCE_TYPE=/usr/share/scim/public/resource_types/group_resource_type.json
- MONGO_METADATA_DIR=/usr/share/scim/public/mongo_metadata
networks:
- app-tier
depends_on:
- db
- rabbit
server:
image: "scim:latest"
build:
context: .
command: ["/usr/bin/scim", "api"]
environment:
- HTTP_PORT=5000
- MONGO_HOST=db
- MONGO_PORT=27017
- MONGO_USERNAME=user
- MONGO_PASSWORD=password123
- MONGO_DATABASE=scim_database
- MONGO_OPT=authMechanism=SCRAM-SHA-1
- RABBIT_HOST=rabbit
- RABBIT_PORT=5672
- RABBIT_USERNAME=user
- RABBIT_PASSWORD=password123
- SERVICE_PROVIDER_CONFIG=/usr/share/scim/public/service_provider_config.json
- SCHEMAS_DIR=/usr/share/scim/public/schemas
- USER_RESOURCE_TYPE=/usr/share/scim/public/resource_types/user_resource_type.json
- GROUP_RESOURCE_TYPE=/usr/share/scim/public/resource_types/group_resource_type.json
- MONGO_METADATA_DIR=/usr/share/scim/public/mongo_metadata
ports:
- "5000:5000"
networks:
- app-tier
depends_on:
- db
- rabbit
volumes:
rabbitmq_data:
driver: local
mongo_data:
driver: local
networks:
app-tier:
driver: bridge