-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (40 loc) · 922 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (40 loc) · 922 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
version: '3.9'
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: orderscript
ports:
- "3000:3000"
environment:
- PORT=3000
- MONGO_DB_URI=mongodb://mongo:27017/mydb
- REDIS_HOST=redis
- REDIS_PORT=6379
depends_on:
- mongo
- redis
mongo:
image: mongo:latest
container_name: mongo
restart: always
ports:
- "27017:27017"
# volumes:
# - mongo-data:/data/db
networks:
- orderscript-network
redis:
image: redis:latest
container_name: redis
restart: always
ports:
- "6380:6379"
networks:
- orderscript-network
# volumes:
# mongo-data:
networks:
orderscript-network:
driver: bridge