forked from Gopher-Industries/SecureShift
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (45 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
51 lines (45 loc) · 1.02 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
version: '3.8'
services:
backend:
build:
context: ./app-backend
container_name: secureshift-backend
ports:
- "5000:5000"
env_file:
- ./app-backend/.env
depends_on:
- mongodb
restart: unless-stopped
networks:
- secureshift
command: npm start
mongodb:
image: mongo:6
container_name: secureshift-db
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: <username>
MONGO_INITDB_ROOT_PASSWORD: <password>
MONGO_INITDB_DATABASE: <database>
volumes:
- mongo-data:/data/db
- ./app-backend/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
restart: unless-stopped
networks:
- secureshift
frontend-employer:
build:
context: ./app-frontend/employer-panel
container_name: secureshift-frontend-employer
ports:
- "3000:3000"
restart: unless-stopped
networks:
- secureshift
command: npm start
volumes:
mongo-data:
networks:
secureshift: