-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (45 loc) · 970 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (45 loc) · 970 Bytes
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
version: "3.3"
services:
node-app:
container_name: express-node-app-container
ports:
- "4000:5000"
env_file:
- ./.env
depends_on:
- mongo
mongo:
image: mongo:7
container_name: mongodb
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root123
volumes:
- mongo-db:/data/db
ports:
- "27017:27017"
mongo-express:
image: mongo-express:1.0.2
container_name: mongo-express
restart: always
environment:
ME_CONFIG_MONGODB_URL: mongodb://root:root123@mongo:27017/
ME_CONFIG_BASICAUTH_USERNAME: admin
ME_CONFIG_BASICAUTH_PASSWORD: admin123
ports:
- "8081:8081"
depends_on:
- mongo
redis:
image: redis
nginx:
image: nginx:stable-alpine
ports:
- "8080:80"
volumes:
-./nginx/default.conf:/ect/nginx.conf.d/default.conf
env_file:
- ./.env
volumes:
mongo-db: