-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (66 loc) · 1.69 KB
/
docker-compose.yml
File metadata and controls
68 lines (66 loc) · 1.69 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '3'
services:
#************Mongo DB***************
mongodb:
container_name: mongodb
image: mongo:latest
restart: unless-stopped
environment:
- MONGO_INITDB_ROOT_DATABASE=asmd_mongo_db
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=passwd
volumes:
- ./mongodb_data_container:/data/db
#means you want to set data on container persist on your local folder named mongo-volume . /data/db/ is a folder that already created inside the mongo container.
ports:
- 27017:27017
# networks:
# - asmd_net
#************Mongo Express*********
mongo_express:
container_name: mongo_express
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
- ME_CONFIG_MONGODB_PORT=27017
- ME_CONFIG_MONGODB_AUTH_USERNAME=root
- ME_CONFIG_MONGODB_AUTH_PASSWORD=passwd
- ME_CONFIG_BASICAUTH_USERNAME=dev
- ME_CONFIG_BASICAUTH_PASSWORD=passwd
- ME_CONFIG_MONGODB_SERVER=mongodb
depends_on:
- mongodb
# networks:
# - asmd_net
#************Backend***************
backend_spring:
container_name: spring_container
build:
context: ./Backend
dockerfile: Dockerfile
ports:
- 8080:8080
depends_on:
- mongodb
# networks:
# - asmd_net
#************Frontend***************
frontend_angular:
container_name: angular_container
build:
context: ./Frontend
dockerfile: Dockerfile
ports:
- 4200:4200
volumes:
- ./Frontend:/home/app
- /home/app/node_modules
depends_on:
- backend_spring
# networks:
# - asmd_net
# networks:
# asmd_net:
# driver: bridge