-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.example.yaml
43 lines (40 loc) · 1.2 KB
/
docker-compose.example.yaml
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'
services:
api:
build: .
ports:
- "3000:3000"
network_mode: host # Needed to access my other container mongo3.6
environment:
# If you already have a mongo instance running, use this
- MONGODB_URL=mongodb://localhost:27017/ac_dev
# If you want to use mongo3.6, use this
# - MONGODB_URL=mongodb://mongo3.6:27017/ac_dev
- JWT_SECRET=THisIsMySceretKey!
- PORT=3000
- MAILER_HOST=smtp.mailtrap.io
- MAILER_PORT=2525
- MAILER_USER=
- MAILER_PASSWORD=
queue:
build: .
command: npm run queue
network_mode: host # Needed to access my other container mongo3.6
environment:
# If you already have a mongo instance running, use this
- MONGODB_URL=mongodb://localhost:27017/ac_dev
# If you want to use mongo3.6, use this
# - MONGODB_URL=mongodb://mongo3.6:27017/ac_dev
- JWT_SECRET=THisIsMySceretKey!
- PORT=3000
- MAILER_HOST=smtp.mailtrap.io
- MAILER_PORT=2525
- MAILER_USER=
- MAILER_PASSWORD=
# Uncomment this if you want to use mongo3.6
# mongo3.6:
# image: mongo:3.6
# ports:
# - "27017:27017"
# volumes:
# - ./data:/data/db