forked from chatgptuk/ldc-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (36 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
42 lines (36 loc) · 1.06 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
version: '3.8'
services:
app:
container_name: ldc-shop
build: .
restart: always
ports:
- "3000:3000"
environment:
# Database
- POSTGRES_URL=postgresql://postgres:postgres@db:5432/ldc_shop
# App URL (Change to your domain in production)
- NEXT_PUBLIC_APP_URL=http://localhost:3000
# Auth (Required for OAuth behind reverse proxy)
- AUTH_URL=http://localhost:3000
- AUTH_TRUST_HOST=true
# Secrets (Replace with your actual values)
- OAUTH_CLIENT_ID=replace_with_client_id
- OAUTH_CLIENT_SECRET=replace_with_client_secret
- MERCHANT_ID=replace_with_merchant_id
- MERCHANT_KEY=replace_with_merchant_key
- ADMIN_USERS=admin,chatgpt
depends_on:
- db
db:
image: postgres:15-alpine
container_name: ldc-shop-db
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=ldc_shop
volumes:
- ./postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"