-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 857 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (42 loc) · 857 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
46
version: '2'
services:
nginx:
container_name: nginx
image: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- "8000:80"
networks:
my-network:
restart: always
my-node-app:
container_name: my-node-app
image: osherbaruch/weather_image:1.0.7
ports:
- "3000"
env_file:
- .env
depends_on:
- nginx
- mongo-practice2
networks:
my-network:
restart: always
mongo-practice2:
container_name: mongo-practice2
image: bitnami/mongodb:4.0
ports:
- "30001:27017"
volumes:
- 'mongo-practice2_mongodb_data:/bitnami'
environment:
- MONGODB_ROOT_PASSWORD=password123
networks:
my-network:
restart: always
networks:
my-network:
volumes:
mongo-practice2_mongodb_data:
driver: local