-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (54 loc) · 1.83 KB
/
docker-compose.yml
File metadata and controls
56 lines (54 loc) · 1.83 KB
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
services:
app:
build:
context: .
container_name: scopestack-app
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql://scopestack:scopestack@postgres:5432/scopestack?schema=public
TEST_DATABASE_URL: postgresql://scopestack:scopestack@postgres:5432/scopestack_test?schema=public
BETTER_AUTH_SECRET: change-me-to-a-strong-random-string-at-least-32-chars
APP_ENCRYPTION_KEY: change-me-to-a-different-strong-random-string-32-chars
BETTER_AUTH_URL: http://localhost:3000
APP_URL: http://localhost:3000
NEXT_PUBLIC_APP_URL: http://localhost:3000
GOOGLE_MAPS_API_KEY: ${GOOGLE_MAPS_API_KEY:-}
TRUST_PROXY: "false"
RESEND_API_KEY: ""
RESEND_FROM_EMAIL: ScopeStack <no-reply@scopestack.local>
STORAGE_DIR: ./storage
STORAGE_DRIVER: ${STORAGE_DRIVER:-local}
S3_ENDPOINT: ${S3_ENDPOINT:-}
S3_REGION: ${S3_REGION:-auto}
S3_BUCKET: ${S3_BUCKET:-}
S3_ACCESS_KEY_ID: ${S3_ACCESS_KEY_ID:-}
S3_SECRET_ACCESS_KEY: ${S3_SECRET_ACCESS_KEY:-}
S3_FORCE_PATH_STYLE: ${S3_FORCE_PATH_STYLE:-false}
XERO_CLIENT_ID: ""
XERO_CLIENT_SECRET: ""
NEXT_TELEMETRY_DISABLED: "1"
ports:
- "3000:3000"
postgres:
image: postgres:16-alpine
container_name: scopestack-postgres
restart: unless-stopped
environment:
POSTGRES_USER: scopestack
POSTGRES_PASSWORD: scopestack
POSTGRES_DB: scopestack
ports:
- "5432:5432"
volumes:
- scopestack-pgdata:/var/lib/postgresql/data
- ./docker/postgres-init.sql:/docker-entrypoint-initdb.d/init.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U scopestack -d scopestack"]
interval: 5s
timeout: 5s
retries: 10
volumes:
scopestack-pgdata: