-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (32 loc) · 938 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
version: "3.9"
services:
mongodb:
image: "mongo:latest"
container_name: mongodb
# Utilisez l'image la plus récente de MongoDB
ports:
- "27020:27020" # Port par défaut de MongoDB
command: mongod --port 27020
restart: unless-stopped
volumes:
- db:/data/db # This line adds a volume to the MongoDB service
pfa_attijari_bank:
image: azizbenismail/pfa-attijari-bank-backendexpress
container_name: pfa-attijari-bank-backendexpress-container
ports:
- "5000:5000"
environment:
- MONGO_URI=mongodb://mongodb:27020/AttijariBank
restart: unless-stopped
depends_on:
- mongodb
pfa_attijari_bank_frontend_react:
image: azizbenismail/pfa-attijari_bank-frontend_react:latest
container_name: pfa-attijari-bank-frontend-react-container
ports:
- "3000:3000"
restart: unless-stopped
depends_on:
- pfa_attijari_bank
volumes:
db: