-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
39 lines (35 loc) · 932 Bytes
/
docker-compose.yaml
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
version: '3'
services:
frontend:
build: ./client
environment:
- PORT=3000
- SERVER_URL=http://localhost:5000 # must specify IP address HERE, otherwise it will only be available from the localhost
ports:
- 3000:3000
restart: always
backend:
build: ./server
environment:
- PORT=5000
- CONNECTION_URL=mongodb://DockerDiamond:MongoDBhunter24365fd@mongodb
ports:
- 5000:5000
restart: always
mongodb:
image: mongo:5.0
environment:
- MONGO_INITDB_ROOT_USERNAME=DockerDiamond
- MONGO_INITDB_ROOT_PASSWORD=MongoDBhunter24365fd
ports:
- 27017:27017
restart: always
mongo-express:
image: mongo-express
ports:
- 8081:8081
environment:
- ME_CONFIG_MONGODB_SERVER=mongodb
- ME_CONFIG_MONGODB_ADMINUSERNAME=DockerDiamond
- ME_CONFIG_MONGODB_ADMINPASSWORD=MongoDBhunter24365fd
restart: always