-
-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (57 loc) · 1.63 KB
/
docker-compose.yml
File metadata and controls
60 lines (57 loc) · 1.63 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
57
58
59
60
version: '3.8'
services:
app:
build: .
ports:
- "3000:3000"
- "9229:9229" # Node.js debug port
depends_on:
- postgres
environment:
- NODE_ENV=development
# Database connection
- DB_USER=memcode
- DB_PASSWORD=memcode
- DB_NAME=memcode
- DB_HOST=postgres
- DB_PORT=5432
# Required application settings
- JWT_SECRET=docker_development_secret_not_for_production
- CONTACT_EMAIL=contact@memcode.com
# OAuth providers (empty for Docker development)
- GITHUB_OAUTH_ID=
- GITHUB_OAUTH_SECRET=
- GOOGLE_OAUTH_ID=
- GOOGLE_OAUTH_SECRET=
- GOOGLE_OAUTH_CALLBACK=http://localhost:3000/api/auth/google/callback
# AWS S3 (empty for Docker development)
- AWS_ACCESS_KEY_ID=
- AWS_SECRET_ACCESS_KEY=
- AWS_REGION=
- AWS_BUCKET_NAME=
# OpenAI (empty for Docker development)
- OPENAI_API_KEY=
volumes:
# Mount source code for development
- ./backend:/app/backend
- ./frontend:/app/frontend
# Exclude node_modules from being overwritten
- /app/node_modules
# Mount webpacked files
- ./backend/webpacked:/app/backend/webpacked
restart: unless-stopped
postgres:
image: postgres:13-alpine
environment:
POSTGRES_DB: memcode
POSTGRES_USER: memcode
POSTGRES_PASSWORD: memcode
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
# Mount schema for initialization
- ./backend/db/schema.sql:/docker-entrypoint-initdb.d/01-schema.sql
restart: unless-stopped
volumes:
postgres_data: