-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (45 loc) · 832 Bytes
/
docker-compose.yml
File metadata and controls
50 lines (45 loc) · 832 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
49
50
version: '3.8'
services:
app:
container_name: agent-sales-api
build:
context: .
dockerfile: Dockerfile
ports:
- '3000:3000'
networks:
- app-network
env_file:
- .env
# volumes: // only on dev env
# - .:/usr/src/app
depends_on:
- mongo
- redis
restart: unless-stopped
tty: true
mongo:
image: mongo:7
container_name: mongo-db
restart: always
ports:
- '27018:27017'
volumes:
- mongo-data:/data/db
env_file:
- .env
networks:
- app-network
redis:
image: redis:7-alpine
container_name: redis-cache
ports:
- '6380:6379' # HostPort:ContainerPort
restart: unless-stopped
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
mongo-data: