-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (69 loc) · 1.41 KB
/
docker-compose.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3'
services:
node-app:
build: .
image: node-app
container_name: node_app
command: npm run dev
# env_file: .env
environment:
- MONGODB_URI=mongodb://mongodb:27017/node-boilerplate
- REDIS_HOST=redis
# - MONGO_USERNAME=$MONGO_USERNAME
# - MONGO_PASSWORD=$MONGO_PASSWORD
# - MONGO_HOSTNAME=db
# - MONGO_PORT=$MONGO_PORT
# - MONGO_DB=$MONGO_DB
ports:
- '3000:3000'
depends_on:
- mongodb
volumes:
- .:/var/www
networks:
- node-network
mongodb:
image: mongo
container_name: mongodb
hostname: mongo
ports:
- 27017:27017
networks:
- node-network
mongo-express:
image: mongo-express
container_name: mongo_express
links:
- mongodb
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_SERVER: mongodb
ME_CONFIG_MONGODB_PORT: 27017
networks:
- node-network
redis:
image: redis:alpine
container_name: redis
privileged: true
ports:
- 6379:6379
networks:
- node-network
swaggerui:
image: swaggerapi/swagger-ui
container_name: swagger_api
environment:
- API_URL=./index-api.yaml
volumes:
- ./docs/openapi.yaml:/usr/share/nginx/html/index-api.yaml
ports:
- '8080:8080'
networks:
- node-network
volumes:
dbdata:
node_modules:
networks:
node-network:
driver: bridge