-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack-full-dev.yaml
More file actions
50 lines (50 loc) · 1.22 KB
/
stack-full-dev.yaml
File metadata and controls
50 lines (50 loc) · 1.22 KB
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
# file: stack-full-dev.yaml
# description: Criar container da aplicação toda.
version: '3.5'
services:
apicore:
build:
dockerfile: ./Dockerfile
context: ./src
image: douglaspands/apicorejs:2.9.0
container_name: apicore-app
environment:
- MONGO_URL=mongo:27017
- REDIS_URL=redis:6379
- LOG_LEVEL=info
- PORT=3000
- NODE_ENV=development # development : GraphQL IDE
volumes:
- app-data:/var/www/logs
ports:
- 3000:3000
- 3001:3001
networks:
- production-network
depends_on:
- mongo
- redis
mongo:
image: mongo:4.0.1
container_name: apicore-mongo
volumes:
- mongo-data:/data/db
ports:
- 27017:27017
networks:
- production-network
redis:
image: redis:4.0.11-alpine
container_name: apicore-redis
ports:
- 6379:6379
networks:
- production-network
networks:
production-network:
driver: bridge
volumes:
app-data:
driver: local
mongo-data:
driver: local