Skip to content

Commit 9879d08

Browse files
committed
fix: use postgresql core image
1 parent e869fe0 commit 9879d08

File tree

1 file changed

+29
-21
lines changed

1 file changed

+29
-21
lines changed

compose.yml

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,31 @@
11
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
2+
core:
3+
# Uses `$SUPERTOKENS_CORE_VERSION` when available, else latest
4+
image: supertokens/supertokens-dev-postgresql:${SUPERTOKENS_CORE_VERSION:-master}
5+
entrypoint: [
6+
"/usr/lib/supertokens/jre/bin/java",
7+
"-classpath", "/usr/lib/supertokens/core/*:/usr/lib/supertokens/plugin-interface/*:/usr/lib/supertokens/ee/*",
8+
"io.supertokens.Main", "/usr/lib/supertokens/", "DEV", "test_mode"
9+
]
10+
ports:
11+
# Uses `$SUPERTOKENS_CORE_PORT` when available, else 3567 for local port
12+
- ${SUPERTOKENS_CORE_PORT:-3567}:3567
13+
platform: linux/amd64
14+
depends_on: [oauth]
15+
environment:
16+
OAUTH_PROVIDER_PUBLIC_SERVICE_URL: http://oauth:4444
17+
OAUTH_PROVIDER_ADMIN_SERVICE_URL: http://oauth:4445
18+
OAUTH_PROVIDER_CONSENT_LOGIN_BASE_URL: http://localhost:3001/auth
19+
OAUTH_CLIENT_SECRET_ENCRYPTION_KEY: asdfasdfasdfasdfasdf
20+
INFO_LOG_PATH: "null"
21+
ERROR_LOG_PATH: "null"
22+
LOG_LEVEL: "DEBUG"
23+
healthcheck:
24+
test: bash -c 'curl -s "http://127.0.0.1:3567/hello" | grep "Hello"'
25+
interval: 10s
26+
timeout: 5s
27+
retries: 5
2028

21-
oauth:
22-
image: supertokens/oauth2-test:latest
23-
platform: linux/amd64
29+
oauth:
30+
image: supertokens/oauth2-test:latest
31+
platform: linux/amd64

0 commit comments

Comments
 (0)