-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
54 lines (48 loc) · 1.33 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
version: "3.2"
services:
account_storage:
image: mysql:8.0.12
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=starstudio
volumes:
- type: bind
source: ./member.sql
target: /docker-entrypoint-initdb.d/init.sql
- type: bind
source: ./docker-data/mysql/data
target: /var/lib/mysql
publish-redis:
image: redis:5.0.0
ports:
- "10028:6379"
volumes:
- type: bind
source: ./docker-data/redis/data
target: /data/
api-server:
image: starsso:1.0.1
environment:
- REDIS_HOST=publish-redis
- MYSQL_HOST=account_storage
- MYSQL_PASSWORD=123456
- MYSQL_DB=starstudio
- MYSQL_USER=root
- SERVER_HOST_NAME=sso.test.com
ports:
- "8000:80"
depends_on:
- account_storage
- publish-redis
volumes:
- type: bind
source: ./docker-data/StarSSO/conf
target: /etc/StarSSO
checkbot:
image: checkbot:1.0.1
environment:
- REDIS_HOST=publish-redis
- MYSQL_HOST=account_storage
- MYSQL_PASSWORD=123456
- MYSQL_DB=starstudio
- MYSQL_USER=root