-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (38 loc) · 827 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (38 loc) · 827 Bytes
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
version: '3.12-slim'
services:
fastapi:
build:
context: .
ports:
- "8000:8000"
environment:
- REDIS_URL=redis://redis:6379/0
- NEXT_PUBLIC_API_KEY=${static_bearer_secret_key}
depends_on:
- mongodb
- redis
nextjs:
build:
context: ./nextjs
dockerfile: Dockerfile
volumes:
- ./nextjs:/app
- /app/node_modules
ports:
- "3000:3000"
mongodb:
image: mongo:latest
environment:
- MONGO_INITDB_ROOT_USERNAME=bringthemhome
- MONGO_INITDB_ROOT_PASSWORD=${mongodb_password}
ports:
- "27017:27017" # for testing purposes you can expose the MongoDB port
volumes:
- mongodb_data:/data/db
redis:
image: redis:latest
volumes:
- redis_data:/data
volumes:
mongodb_data:
redis_data: