-
Notifications
You must be signed in to change notification settings - Fork 43
/
docker-compose.yml
185 lines (184 loc) · 5.04 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# Use postgres/example user/password credentials
version: '3.1'
services:
oidc-server-mock:
container_name: oidc-server-mock
image: ghcr.io/xdev-software/oidc-server-mock:1.0.4
ports:
- '9001:8080'
environment:
ASPNETCORE_ENVIRONMENT: Development
SERVER_OPTIONS_INLINE: |
{
"AccessTokenJwtType": "JWT",
"Discovery": {
"ShowKeySet": true
},
"Authentication": {
"CookieSameSiteMode": "Lax",
"CheckSessionCookieSameSiteMode": "Lax"
}
}
LOGIN_OPTIONS_INLINE: |
{
"AllowRememberLogin": false
}
LOGOUT_OPTIONS_INLINE: |
{
"AutomaticRedirectAfterSignOut": true
}
API_SCOPES_INLINE: |
- Name: some-app-scope-1
- Name: some-app-scope-2
API_RESOURCES_INLINE: |
- Name: some-app
Scopes:
- some-app-scope-1
- some-app-scope-2
USERS_CONFIGURATION_INLINE: |
[
{
"SubjectId":"1",
"Username":"User1",
"Password":"pwd",
"Claims": [
{
"Type": "name",
"Value": "Sam Tailor",
"ValueType": "string"
},
{
"Type": "email",
"Value": "[email protected]",
"ValueType": "string"
},
{
"Type": "some-api-resource-claim",
"Value": "Sam's Api Resource Custom Claim",
"ValueType": "string"
},
{
"Type": "some-api-scope-claim",
"Value": "Sam's Api Scope Custom Claim",
"ValueType": "string"
},
{
"Type": "some-identity-resource-claim",
"Value": "Sam's Identity Resource Custom Claim",
"ValueType": "string"
}
]
}
]
CLIENTS_CONFIGURATION_INLINE: |
[
{
"ClientId": "foo",
"ClientSecrets": ["bar"],
"Description": "Client for implicit flow",
"AllowedGrantTypes": ["authorization_code"],
"RequirePkce": false,
"AllowAccessTokensViaBrowser": true,
"RedirectUris": ["http://localhost:3000/login"],
"AllowedScopes": ["openid", "profile", "email"],
"IdentityTokenLifetime": 3600,
"AccessTokenLifetime": 3600,
"AlwaysIncludeUserClaimsInIdToken": true
}
]
ASPNET_SERVICES_OPTIONS_INLINE: |
{
"ForwardedHeadersOptions": {
"ForwardedHeaders" : "All"
}
}
volumes:
- .:/tmp/config:ro
db:
image: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
# volumes:
# - ./schema.sql:/docker-entrypoint-initdb.d/schema.sql
ports:
- 5432:5432
#openid:
# image: qlik/simple-oidc-provider
# environment:
# REDIRECTS: http://localhost:3000/login
# ports:
# - 9001:9000
fake-smtp:
image: reachfive/fake-smtp-server
ports:
- 1081:1025
- 1080:1080
wasm-manager:
image: maif/wasmo:1.2.1
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- manager-network
#entrypoint: ["/bin/sh", "-c", "npm config set strict-ssl false"]
environment:
MANAGER_PORT: 5001
AUTH_MODE: NO_AUTH
MANAGER_MAX_PARALLEL_JOBS: 2
MANAGER_ALLOWED_DOMAINS: otoroshi.oto.tools,wasm-manager.oto.tools,localhost:5001
MANAGER_EXPOSED DOMAINS: /
OTOROSHI_USER_HEADER: Otoroshi-User
WASMO_CLIENT_ID: admin-api-apikey-id
WASMO_CLIENT_SECRET: admin-api-apikey-secret
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
AWS_DEFAULT_REGION: us-east-1
S3_FORCE_PATH_STYLE: 1
S3_ENDPOINT: http://host.docker.internal:8000
S3_BUCKET: wasm-manager
STORAGE: DOCKER_S3
LOCAL_WASM_JOB_CLEANING: 60000
NPM_CONFIG_STRICT_SSL: false
ports:
- 5001:5001
depends_on:
ninjaS3:
condition: service_healthy
links:
- ninjaS3 #s3Mock
# s3:
# image: scality/s3server
# networks:
# - manager-network
# environment:
# SCALITY_ACCESS_KEY_ID: access_key
# SCALITY_SECRET_ACCESS_KEY: secret
# ports:
# - 8000:8000
# s3Mock:
# image: adobe/s3mock
# networks:
# - manager-network
# ports:
# - 8000:9090
# environment:
# initialBuckets: wasm-manager
# healthcheck:
# test: ["CMD", "wget", "-O/dev/null", "-q", "http://localhost:9090/" ]
# interval: 2s
# timeout: 10s
# retries: 100
ninjaS3:
image: scireum/s3-ninja:latest
networks:
- manager-network
ports:
- 8000:9000
healthcheck:
test: curl --fail http://localhost:9000 || exit 1
interval: 2s
timeout: 10s
retries: 100
networks:
manager-network: