-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 830 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (37 loc) · 830 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
services:
app:
build:
context: .
dockerfile: Dockerfile
image: pdf-backend-api:latest
container_name: pdf-backend-api
restart: unless-stopped
env_file: .env
environment:
# When running inside compose, use service names "mongo" and "redis"
- MONGO_URI=mongodb://mongo:27017/documents-db
- REDIS_URL=redis://redis:6379/0
ports:
- '${PORT:-3000}:${PORT:-3000}'
depends_on:
- mongo
- redis
mongo:
image: mongo:8
container_name: pdf-mongo
restart: unless-stopped
ports:
- '27017:27017'
volumes:
- mongo_data:/data/db
redis:
image: redis:7-alpine
container_name: pdf-redis
restart: unless-stopped
ports:
- '6379:6379'
volumes:
- redis_data:/data
volumes:
mongo_data:
redis_data: