-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yaml
58 lines (56 loc) · 1.61 KB
/
docker-compose.yaml
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
version: "3.7"
networks:
uikit-network:
driver: bridge
services:
api:
build:
context: .
dockerfile: Dockerfile
container_name: uikit-api
ports:
- "8080:8080"
environment:
- SPRING_DATA_MONGODB_URI=mongodb://dev:test@uikit-mongo:27017/test
- SPRING_REDIS_HOST=uikit-redis
- SPRING_REDIS_PASSWORD=test
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=2
- WHITELIST_TOKEN_APP_ID=${WHITELIST_TOKEN_APP_ID}
- WHITELIST_TOKEN_APP_CERT=${WHITELIST_TOKEN_APP_CERT}
- WHITELIST_CHAT_ROOM_APP_ID=${WHITELIST_CHAT_ROOM_APP_ID}
- WHITELIST_CHAT_ROOM_ORG_NAME=${WHITELIST_CHAT_ROOM_ORG_NAME}
- WHITELIST_CHAT_ROOM_APP_NAME=${WHITELIST_CHAT_ROOM_APP_NAME}
- WHITELIST_CHAT_ROOM_CLIENT_ID=${WHITELIST_CHAT_ROOM_CLIENT_ID}
- WHITELIST_RTC_KICK_OUT_AUTH_APP_ID=${WHITELIST_RTC_KICK_OUT_AUTH_APP_ID}
- WHITELIST_RTC_KICK_OUT_AUTH_BASIC_AUTH=${WHITELIST_RTC_KICK_OUT_AUTH_BASIC_AUTH}
networks:
- uikit-network
depends_on:
- redis
- mongo
redis:
image: redis:6.0
platform: linux/amd64
container_name: uikit-redis
restart: always
ports:
- "6379:6379"
command: >
--requirepass test
networks:
- uikit-network
mongo:
image: mongo:6.0
container_name: uikit-mongo
restart: always
ports:
- "27017:27017"
environment:
- MONGO_INITDB_DATABASE=test
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=admin
volumes:
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
networks:
- uikit-network