-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
47 lines (42 loc) · 830 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
47 lines (42 loc) · 830 Bytes
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.8"
services:
mongoDB:
image: mongo:latest
container_name: mongoDB
ports:
- "27017:27017"
volumes:
- ./data:/data/db
networks:
- club_catalyst
backend:
build: ./backend
container_name: backend
ports:
- "3001:3001"
environment:
PORT: 3001
MONGO_URI: mongodb://mongodb:27017
CORS_ORIGIN: http://localhost:3000
JWT_SECRET: my_secret_password
JWT_EXPIRE: 5d
COOKIE_EXPIRE: 5
depends_on:
- mongoDB
networks:
- club_catalyst
frontend:
build: ./frontend
container_name: frontend
ports:
- "3000:3000"
environment:
- REACT_APP_BACKEND_URI=http://localhost:3001
depends_on:
- backend
networks:
- club_catalyst
volumes:
data:
networks:
club_catalyst: