-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (72 loc) · 2.22 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: "3"
services:
frontend:
build:
context: ./brekkie-frontend
dockerfile: Dockerfile
stdin_open: true
ports:
- "3000:3000"
networks:
- brekkie
environment:
- REACT_APP_BASE_URL=http://localhost:5000
- REACT_APP_SIGNUP=/auth/signup
- REACT_APP_LOGIN_URL=/auth/login
- REACT_APP_COMMENTS=/comment/
- REACT_APP_FAVORITES=/favorite/
- REACT_APP_FOOD_LOGS=/food_log/
- REACT_APP_FOOD_LOGS_BY_DATE=/food_log/find/
- REACT_APP_FOOD_LOGS_BY_RANGE=/food_log/range/
- REACT_APP_INVENTORY=/inventory
- REACT_APP_VOTE_ONE_STAR=/recipe/one_star/
- REACT_APP_VOTE_TWO_STAR=/recipe/two_star/
- REACT_APP_VOTE_THREE_STAR=/recipe/three_star/
- REACT_APP_VOTE_FOUR_STAR=/recipe/four_star/
- REACT_APP_VOTE_FIVE_STAR=/recipe/five_star/
- REACT_APP_ADD_RECIPE=/recipe
- REACT_APP_ALL_RECIPES=/recipe/index
- REACT_APP_RECIPE_BY_KEYWORD=/recipe/find
- REACT_APP_RECIPE_BY_ID=/recipe/find/
- REACT_APP_RECIPES_BY_INVENTORY=/recipe/find_by_inventory
- REACT_APP_SHOPPING_LIST=/shopping_list
- REACT_APP_ALL_USERS=/user/index
- REACT_APP_USER_PROFILE=/user/profile
- REACT_APP_USER_BY_ID=/user/find/
backend:
build:
context: ./brekkie-backend
dockerfile: Dockerfile
ports:
- "5000:5000"
networks:
- brekkie
depends_on:
- mongo
environment:
- PORT=5000
- DB=mongodb://mongodb:27017/brekkie
- JWT_SECRET=U3R8z2KHVz8U3k9f
mongo:
hostname: mongodb
image: mongo:4.4
ports:
- "27017:27017"
networks:
- brekkie
volumes:
- mongo-data:/data/brekkie
mongo-seed:
build: ./mongo-seed
networks:
- brekkie
links:
- mongo
depends_on:
- mongo
networks:
brekkie:
driver: bridge
volumes:
mongo-data:
driver: local