Skip to content

Commit 5e13eff

Browse files
update docker compose
1 parent ce6d701 commit 5e13eff

File tree

8 files changed

+812
-60
lines changed

8 files changed

+812
-60
lines changed

docker/stack-auth-services/.env.backend

Lines changed: 0 additions & 31 deletions
This file was deleted.

docker/stack-auth-services/.env.dashboard

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +0,0 @@
1-
POSTGRES_DELAY_MS=0
2-
3-
# .env
4-
POSTGRES_STACKFRAME_PASSWORD=
5-
POSTGRES_SVIX_PASSWORD=
6-
SVIX_JWT_SECRET=

docker/stack-auth-services/.env.sentry

Lines changed: 0 additions & 5 deletions
This file was deleted.

docker/stack-auth-services/docker-compose.yaml

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,30 @@ services:
1111
STACK_SVIX_SERVER_URL: http://svix-server:8071
1212
STACK_DATABASE_CONNECTION_STRING: postgres://postgres:${POSTGRES_STACKFRAME_PASSWORD}@db:5432/stackframe
1313
STACK_DIRECT_DATABASE_CONNECTION_STRING: postgres://postgres:${POSTGRES_STACKFRAME_PASSWORD}@db:5432/stackframe
14-
env_file:
15-
- .env.backend
16-
- .env.sentry
14+
STACK_SERVER_SECRET: ${STACK_SERVER_SECRET}
15+
STACK_SVIX_API_KEY: ${STACK_SVIX_API_KEY}
16+
STACK_OAUTH_MOCK_URL: ${STACK_OAUTH_MOCK_URL}
17+
STACK_GITHUB_CLIENT_ID: ${STACK_GITHUB_CLIENT_ID}
18+
STACK_GITHUB_CLIENT_SECRET: ${STACK_GITHUB_CLIENT_SECRET}
19+
STACK_GOOGLE_CLIENT_ID: ${STACK_GOOGLE_CLIENT_ID}
20+
STACK_GOOGLE_CLIENT_SECRET: ${STACK_GOOGLE_CLIENT_SECRET}
21+
STACK_MICROSOFT_CLIENT_ID: ${STACK_MICROSOFT_CLIENT_ID}
22+
STACK_MICROSOFT_CLIENT_SECRET: ${STACK_MICROSOFT_CLIENT_SECRET}
23+
STACK_SPOTIFY_CLIENT_ID: ${STACK_SPOTIFY_CLIENT_ID}
24+
STACK_SPOTIFY_CLIENT_SECRET: ${STACK_SPOTIFY_CLIENT_SECRET}
25+
STACK_EMAIL_HOST: ${STACK_EMAIL_HOST}
26+
STACK_EMAIL_PORT: ${STACK_EMAIL_PORT}
27+
STACK_EMAIL_SECURE: ${STACK_EMAIL_SECURE}
28+
STACK_EMAIL_USERNAME: ${STACK_EMAIL_USERNAME}
29+
STACK_EMAIL_PASSWORD: ${STACK_EMAIL_PASSWORD}
30+
STACK_EMAIL_SENDER: ${STACK_EMAIL_SENDER}
31+
STACK_ACCESS_TOKEN_EXPIRATION_TIME: ${STACK_ACCESS_TOKEN_EXPIRATION_TIME}
32+
STACK_SETUP_ADMIN_GITHUB_ID: ${STACK_SETUP_ADMIN_GITHUB_ID}
33+
OTEL_EXPORTER_OTLP_ENDPOINT: ${OTEL_EXPORTER_OTLP_ENDPOINT}
34+
NEXT_PUBLIC_SENTRY_DSN: ${NEXT_PUBLIC_SENTRY_DSN}
35+
NEXT_PUBLIC_SENTRY_ORG: ${NEXT_PUBLIC_SENTRY_ORG}
36+
NEXT_PUBLIC_SENTRY_PROJECT: ${NEXT_PUBLIC_SENTRY_PROJECT}
37+
SENTRY_AUTH_TOKEN: ${SENTRY_AUTH_TOKEN}
1738
ports:
1839
- 8102:8102
1940
depends_on:
@@ -25,9 +46,15 @@ services:
2546
image: stack-auth/dashboard
2647
networks:
2748
- stack-auth-network
28-
env_file:
29-
- .env.dashboard
30-
- .env.sentry
49+
environment:
50+
NEXT_PUBLIC_STACK_URL: ${NEXT_PUBLIC_STACK_URL}
51+
NEXT_PUBLIC_STACK_PROJECT_ID: ${NEXT_PUBLIC_STACK_PROJECT_ID}
52+
NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY: ${NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY}
53+
STACK_SECRET_SERVER_KEY: ${STACK_SERVER_SECRET}
54+
NEXT_PUBLIC_STACK_SVIX_SERVER_URL: ${NEXT_PUBLIC_STACK_SVIX_SERVER_URL}
55+
STACK_ACCESS_TOKEN_EXPIRATION_TIME: ${STACK_ACCESS_TOKEN_EXPIRATION_TIME}
56+
NEXT_PUBLIC_STACK_HEAD_TAGS: ${NEXT_PUBLIC_STACK_HEAD_TAGS}
57+
NODE_TLS_REJECT_UNAUTHORIZED: ${NODE_TLS_REJECT_UNAUTHORIZED}
3158
depends_on:
3259
- stack-auth-backend
3360

@@ -43,8 +70,8 @@ services:
4370
ports:
4471
- 443:443
4572
volumes:
46-
- ./nginx.conf:/etc/nginx/nginx.conf:ro
47-
- ./certs:/etc/nginx/ssl:ro
73+
- ./volumes/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
74+
- ./volumes/nginx/certs:/etc/nginx/ssl:ro
4875
depends_on:
4976
- stack-auth-dashboard
5077

@@ -63,6 +90,7 @@ services:
6390
ports:
6491
- 8111:5432
6592
volumes:
93+
- ./volumes/db/stack-auth-init.sql:/docker-entrypoint-initdb.d/99-stack-auth-init.sql:Z
6694
- postgres-data:/var/lib/postgresql/data
6795
entrypoint: ["sh", "-c", "
6896
if [ $POSTGRES_DELAY_MS -gt 0 ]; then

0 commit comments

Comments
 (0)