-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathdocker-compose.cloud.yml
More file actions
33 lines (32 loc) · 1.01 KB
/
docker-compose.cloud.yml
File metadata and controls
33 lines (32 loc) · 1.01 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
services:
app:
build:
context: .
target: runner
args:
# These build args are needed for SSG pages during `next build`
- DATABASE_URL=${DATABASE_URL}
- NEXT_PUBLIC_APP_URL=${NEXT_PUBLIC_APP_URL}
- NEXT_PUBLIC_S3_PUBLIC_URL=${NEXT_PUBLIC_S3_PUBLIC_URL}
- NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=${NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN:-}
restart: unless-stopped
ports:
- "3000:3000"
environment:
# Database (Defaults to Cloud/Neon if not set to 'local')
- DATABASE_PROVIDER=cloud
# Environment variables should be passed via a .env file or the host environment
# Required vars:
# - DATABASE_URL
# - BETTER_AUTH_SECRET
# - BETTER_AUTH_URL
# - NEXT_PUBLIC_APP_URL
# - S3_ACCESS_KEY_ID
# - S3_SECRET_ACCESS_KEY
# - S3_BUCKET_NAME
# - S3_REGION (Optional)
# - S3_ENDPOINT (Optional, for Cloudflare R2 etc.)
# - S3_PUBLIC_URL
# - NEXT_PUBLIC_S3_PUBLIC_URL
env_file:
- .env