-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
56 lines (52 loc) · 1.14 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
version: "3.4"
services:
mongo:
container_name: veneu_mongo
image: mongo
restart: unless-stopped
volumes:
- mongo_data:/data/db
ports:
- 27017:27017
logging:
driver: none
environment:
- MONGO_INITDB_DATABASE=veneu
server:
container_name: veneu_server
build: ./apollo-server
command: ./node_modules/.bin/nodemon server
restart: unless-stopped
volumes:
- ./apollo-server:/app
- server_node_modules:/app/node_modules
ports:
- 4000:4000
environment:
- NODE_ENV=development
- JWTAUTH_KEY=${JWTAUTH_KEY}
- DB_URL=${DB_URL}
depends_on:
- mongo
web:
container_name: veneu_web
build: ./
command: npm run serve
restart: unless-stopped
volumes:
- ./:/app
- web_node_modules:/app/node_modules
ports:
- 8080:8080
environment:
- NODE_ENV=development
- BASE_URL=${BASE_URL}
- VUE_APP_GRAPHQL_HTTP=${VUE_APP_GRAPHQL_HTTP}
- VUE_APP_GRAPHQL_WS=${VUE_APP_GRAPHQL_WS}
depends_on:
- mongo
- server
volumes:
mongo_data:
server_node_modules:
web_node_modules: