-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (43 loc) · 829 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (43 loc) · 829 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
44
45
46
47
48
version: '3.9'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000" # Maps port 3000 on the host to port 3000 in the container
environment:
NODE_ENV: production
JWT_SECRET: ${JWT_SECRET}
DATABASE_URL: ${DATABASE_URL}
PORT: 3000
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
networks:
- app-network
depends_on:
- redis
redis:
image: redis:alpine
ports:
- "6379:6379"
networks:
- app-network
volumes:
- redis-data:/data
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- app
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
redis-data: