-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
51 lines (46 loc) · 977 Bytes
/
docker-compose.test.yml
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"
volumes:
mongo_data: {}
mongo_backup: {}
node_logs: {}
networks:
app-network:
driver: bridge
services:
nuxt:
restart: always
container_name: drewdru_node_test
build:
context: .
dockerfile: compose/node/Dockerfile
environment:
NODE_ENV: production
DATABASE_URL: "mongodb://mongo:27017/drewdru"
volumes:
- /home/app/drewdru/node_modules
- node_logs:/home/app/drewdru/logs
ports:
- "3000:3000"
depends_on:
- mongo
- redis
networks:
- app-network
# tty: true
mongo:
restart: always
container_name: drewdru_mongo_test
image: mongo:4.2
command: mongod --storageEngine wiredTiger
volumes:
- mongo_data:/data/db
- mongo_backup:/data/backup
# ports:
# - '27017:27017'
networks:
- app-network
redis:
image: redis:5.0.12-alpine
container_name: drewdru_redis_local
networks:
- app-network