-
-
Notifications
You must be signed in to change notification settings - Fork 126
/
docker-compose.dev.yml
44 lines (41 loc) · 1.03 KB
/
docker-compose.dev.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
version: '3'
services:
abibliadigital:
build: ./docker-api
command: [ "bash", "/usr/src/api/start.sh" ]
ports:
- "3000:3000"
expose:
- "3000"
container_name: abibliadigital
environment:
- MONGODB_URI=mongodb://abibliadigital-mongo/abibliadigital
- NODE_ENV=development
- SECRET_KEY=19B2AFFC3B287A4E41FA7C1158A8A
- REDIS_URL=redis://abibliadigital-redis
volumes:
- ../abibliadigital:/usr/src/api
depends_on:
- abibliadigital-mongo
- abibliadigital-redis
abibliadigital-mongo:
build: ./docker-mongo
container_name: abibliadigital-mongo
ports:
- "27017:27017"
expose:
- "27017"
volumes:
- ../mongo-abibliadigital/db/data:/data/db
- ../mongo-abibliadigital/db/log:/var/log/mongodb
abibliadigital-redis:
image: "redis:alpine"
container_name: abibliadigital-redis
command: redis-server
ports:
- "6379:6379"
expose:
- "6379"
restart: always
volumes:
- ../redis-data:/var/lib/redis