-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
70 lines (64 loc) · 1.29 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
# services:
# mongodb:
# image: mongo
# restart: always
# backend:
# image: waveentry-server
# environment:
# - DB_HOST=mongodb
# - DB_NAME=wavedb
# - SERVER_PORT=3001
# - JWT_SECRET=abcd1234
# ports:
# - "3001:3001"
# depends_on:
# - mongodb
# seeder:
# image: waveentry-server
# environment:
# - DB_HOST=mongodb
# - DB_NAME=wavedb
# - SERVER_PORT=3001
# - JWT_SECRET=abcd1234
# command: npm run db:seed
# depends_on:
# - mongodb
# - backend
# frontend:
# image: waveentry-web
# environment:
# - REACT_APP_SERVER_URL=http://0.0.0.0:3000
# ports:
# - "3000:3000"
# depends_on:
# - mongodb
# - backend
# - seeder
services:
backend:
image: waveentry-server
build: .
environment:
- DB_HOST=mongodb
- DB_NAME=wavedb
- SERVER_PORT=3001
- JWT_SECRET=abcd1234
- DB_PORT=27017
ports:
- "3001:3001"
depends_on:
- mongodb
mongodb:
image: mongo
restart: always
# giving port is optional
ports:
- "27017:27017"
frontend:
image: waveentry-web
environment:
- REACT_APP_SERVER_URL=http://0.0.0.0:3000
ports:
- "3000:3000"
depends_on:
- backend