-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.qa.template.yml
114 lines (106 loc) · 3.07 KB
/
docker-compose.qa.template.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
108
109
110
111
112
113
114
version: "3.9"
services:
sso_cas:
image: ghcr.io/bookpanda/sso-cas:latest
container_name: sso_cas
restart: unless-stopped
environment:
APP_PORT: 3001
APP_ENV: production
DB_URL: postgres://root:1234@cas_db:5432/db
OAUTH_CLIENT_ID:
OAUTH_CLIENT_SECRET:
OAUTH_REDIRECT_URI: http://localhost:3000
AUTH_ST_TTL: 60
AUTH_SESSION_TTL: 86400
AUTH_SERVICES_LOGOUT: http://sso_svc_1:80/api/v1/auth/sso-signout,http://sso_svc_2:80/api/v1/auth/sso-signout
AUTH_IS_HTTPS: "false"
AUTH_COOKIE_DOMAIN: localhost
CORS_ALLOW_ORIGINS: http://localhost:3000,http://sso_svc_1:5203,http://sso_svc_2:5204
networks:
- sso
ports:
- "3001:3001"
sso_svc_1:
image: ghcr.io/bookpanda/sso-sample-service:latest
container_name: sso_svc_1
restart: unless-stopped
environment:
ASPNETCORE_ENVIRONMENT: Production
Cors__AllowedOrigins: "http://localhost:3002"
Jwt__Secret: "IoYHfGk7q81dUmEy1iMg2cv8bQqHCcwq45XqIsBoQIMfYqcNWv0BLApEoFlgJtG1a"
Jwt__AccessTTL: 900
Jwt__Issuer: "service-1"
SSO__Service: "http://localhost:3002"
SSO__Authority: "http://sso_cas:3001"
ConnectionStrings__Database: "Server=service_db:5432;Database=db;User Id=root;Password=1234;"
ConnectionStrings__Redis: "service_cache:6379,password=5678"
ASPNETCORE_URLS: "http://+:80"
networks:
- sso
ports:
- "5203:80"
sso_svc_2:
image: ghcr.io/bookpanda/sso-sample-service:latest
container_name: sso_svc_2
restart: unless-stopped
environment:
ASPNETCORE_ENVIRONMENT: Production
Cors__AllowedOrigins: "http://localhost:3003"
Jwt__Secret: "IoYHfGk7q81dUmEy1iMg2cv8bQqHCcwq45XqIsBoQIMfYqcNWv0BLApEoFlgJtG1a"
Jwt__AccessTTL: 900
Jwt__Issuer: "service-2"
SSO__Service: "http://localhost:3003"
SSO__Authority: "http://sso_cas:3001"
ConnectionStrings__Database: "Server=service_db:5432;Database=db;User Id=root;Password=1234;"
ConnectionStrings__Redis: "service_cache:6379,password=5678"
ASPNETCORE_URLS: "http://+:80"
networks:
- sso
ports:
- "5204:80"
cas_db:
image: postgres:15.1-alpine3.17
container_name: cas_db
restart: unless-stopped
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: "1234"
POSTGRES_DB: db
networks:
- sso
volumes:
- cas_postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
service_db:
image: postgres:15.1-alpine3.17
container_name: service_db
restart: unless-stopped
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: "1234"
POSTGRES_DB: db
networks:
- sso
volumes:
- service_postgres:/var/lib/postgresql/data
ports:
- "5433:5432"
service_cache:
image: redis
container_name: service_cache
restart: unless-stopped
environment:
REDIS_HOST: localhost
REDIS_PASSWORD: "5678"
networks:
- sso
ports:
- "6379:6379"
networks:
sso:
name: sso
volumes:
cas_postgres:
service_postgres: