Skip to content

Commit 804147f

Browse files
Add compose for starting up core
1 parent d78a114 commit 804147f

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/auth-react-test-1.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,13 @@ jobs:
8484
AUTH_REACT__PORT: ${{ needs.setup-auth-react.outputs.AUTH_REACT__PORT }}
8585

8686
steps:
87+
- uses: actions/checkout@v4
88+
with:
89+
path: supertokens-auth-react
90+
8791
- name: Start core
8892
run: docker compose up --wait
93+
working-directory: supertokens-auth-react
8994

9095
- uses: supertokens/auth-react-testing-action@main
9196
name: ${{ matrix.fdi-version }}

compose.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
services:
2+
core:
3+
# Uses `$SUPERTOKENS_CORE_VERSION` when available, else latest
4+
image: supertokens/supertokens-core:dev-branch-${SUPERTOKENS_CORE_VERSION:-master}
5+
ports:
6+
# Uses `$SUPERTOKENS_CORE_PORT` when available, else 3567 for local port
7+
- ${SUPERTOKENS_CORE_PORT:-3567}:3567
8+
platform: linux/amd64
9+
depends_on: [oauth]
10+
environment:
11+
OAUTH_PROVIDER_PUBLIC_SERVICE_URL: http://oauth:4444
12+
OAUTH_PROVIDER_ADMIN_SERVICE_URL: http://oauth:4445
13+
OAUTH_PROVIDER_CONSENT_LOGIN_BASE_URL: http://localhost:3001/auth
14+
OAUTH_CLIENT_SECRET_ENCRYPTION_KEY: asdfasdfasdfasdfasdf
15+
healthcheck:
16+
test: bash -c 'curl -s "http://127.0.0.1:3567/hello" | grep "Hello"'
17+
interval: 10s
18+
timeout: 5s
19+
retries: 5
20+
21+
oauth:
22+
image: supertokens/oauth2-test:latest
23+
platform: linux/amd64

0 commit comments

Comments
 (0)