-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (47 loc) · 1.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (47 loc) · 1.01 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
version: "3.9"
services:
db:
container_name: sunshine-mongodb
image: mongodb/mongodb-community-server:6.0-ubi8
restart: always
volumes:
- ../sunshine-backend/data:/data/db
ports:
- "27018:27017"
networks:
- backend
api:
build: ../sunshine-backend/.
container_name: sunshine-backend
command: npm run start:prod
working_dir: /app
ports:
- "3001:3001"
environment:
- NODE_ENV=production
- PORT=3001
- MONGODB_URL=mongodb://db:27017/sunshine
- JWT_SECRET=changethissecret
- JWT_ACCESS_EXPIRATION_MINUTES=60
depends_on:
- db
networks:
- backend
- frontend
app:
build: ../sunshine-frontend/.
container_name: sunshine-frontend
working_dir: /app
ports:
- "3000:3000"
environment:
- REACT_APP_SUNSHINE_BACKEND_URL=http://localhost:3001/api/v1
depends_on:
- api
networks:
- frontend
networks:
backend:
driver: bridge
frontend:
driver: bridge