-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (42 loc) · 944 Bytes
/
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
version: '3.7'
services:
frontend:
restart: always
build: ./frontend
ports:
- '3000:3000'
volumes:
- /app/node_modules # ca sa nu fie rescris rescris
- ./frontend:/app
environment:
- CHOKIDAR_USEPOLLING=true
api:
restart: always
build: ./api
ports:
- '5050:5050'
volumes:
- ./api:/app
mongo:
image: mongo:4.4.5
restart: always
ports:
- 27017:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=password
volumes:
- mongodb_data:/data/db
mongo-express:
image: mongo-express:0.54.0
restart: always
ports:
- 8081:8081
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=admin
- ME_CONFIG_MONGODB_ADMINPASSWORD=password
- ME_CONFIG_MONGODB_SERVER=mongo
depends_on: # started only after mongo container
- mongo
volumes:
mongodb_data: