-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
67 lines (65 loc) · 1.42 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
version: '2.1'
services:
server-stream:
build:
context: ./server_stream/
volumes:
- ./server_stream:/home/node/app
ports:
- "3000:3000"
command: npm start
depends_on:
# - mongo-seed
database:
condition: service_healthy
environment:
- SERVERADDRESS=http://${HOSTNAME}
server:
build:
context: ./server/
ports:
- "5500:5500"
command: npm start
volumes:
- ./server/:/usr/server
- ./client/:/usr/client
- /user/server/node_modules
depends_on:
# - mongo-seed
- database
env_file: ./server/.env
environment:
- SERVER_BACK=http://${HOSTNAME}:5500
- SERVER_CLIENT=http://${HOSTNAME}:8080
database:
image: bitnami/mongodb
ports:
- "27017:27017"
volumes:
- ./database:/data/db
healthcheck:
test: "exit 0"
client:
build:
context: ./client/
ports:
- "8080:8080"
volumes:
- ./client/:/usr/client
- /user/client/node_modules
# env_file: ./client/.env.development
environment:
- VUE_APP_URI=http://${HOSTNAME}:5500
- VUE_APP_SERVER_PLAYER=http://${HOSTNAME}:3000
command: npm run-script serve
# mongo-seed:
# build:
# context: ./mongoSeed/
# links:
# - database
# volumes:
# - ./mongoSeed:/mongoSeed
# command:
# /mongoSeed/import.sh
# depends_on:
# - database