-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (73 loc) · 1.89 KB
/
Copy pathdocker-compose.yml
File metadata and controls
77 lines (73 loc) · 1.89 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
services:
# MongoDB
mongodb:
image: mongo:6.0
container_name: resumeit-mongodb
restart: unless-stopped
ports:
- "27017:27017"
environment:
MONGO_INITDB_DATABASE: resumeit
volumes:
- mongodb_data:/data/db
networks:
- resumeit-network
# Backend (Go)
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: resumeit-backend
restart: unless-stopped
ports:
- "8080:8080"
environment:
PORT: 8080
ENV: development
MONGODB_URI: mongodb://mongodb:27017
MONGODB_DATABASE: resumeit
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
GOOGLE_REDIRECT_URL: http://localhost:8080/auth/google/callback
JWT_SECRET: ${JWT_SECRET}
JWT_EXPIRY: 24h
OPENAI_API_KEY: ${OPENAI_API_KEY}
OPENAI_MODEL: gpt-4
OPENAI_MAX_TOKENS: 2000
FRONTEND_URL: http://localhost:3000
MAX_JOURNEYS_PER_DAY: ${MAX_JOURNEYS_PER_DAY:-2}
STORAGE_PROVIDER: ${STORAGE_PROVIDER:-local}
STORAGE_PATH: /app/storage
S3_BUCKET_NAME: ${S3_BUCKET_NAME:-}
S3_REGION: ${S3_REGION:-us-east-1}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:-}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:-}
S3_ENDPOINT: ${S3_ENDPOINT:-}
depends_on:
- mongodb
volumes:
- ./backend/storage:/app/storage
networks:
- resumeit-network
# Frontend (React)
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: resumeit-frontend
restart: unless-stopped
ports:
- "3000:3000"
environment:
REACT_APP_API_URL: http://localhost:8080
REACT_APP_GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
depends_on:
- backend
networks:
- resumeit-network
volumes:
mongodb_data:
driver: local
networks:
resumeit-network:
driver: bridge