This repository has been archived by the owner on Aug 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
84 lines (79 loc) · 1.67 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
77
78
79
80
81
82
83
84
version: '3.5'
services:
nginx:
image: 'nginx:latest'
volumes:
- './nginx/configs:/etc/nginx/conf.d/'
ports:
- '8080:80'
container_name: nginx
depends_on:
- app
- storybook
- docs
- mock_server
networks:
vuetibook-area-network:
aliases:
- vuetibook.local
app:
build:
context: .
dockerfile: Dockerfile.dev
target: dev-stage
volumes:
- '.:/app'
env_file:
- .env
container_name: app
command: sh -c "yarn install && yarn serve"
networks:
vuetibook-area-network:
aliases:
- vuetibook.local
storybook:
build:
context: .
dockerfile: Dockerfile.dev
target: dev-stage
volumes:
- '.:/app'
env_file:
- .env
container_name: storybook
command: sh -c "yarn install && yarn serve:storybook"
networks:
vuetibook-area-network:
aliases:
- components.vuetibook.local
docs:
build:
context: .
dockerfile: Dockerfile.dev
target: dev-stage
volumes:
- './docs:/app'
env_file:
- .env
container_name: docs
command: sh -c "yarn install && yarn serve:docs"
networks:
vuetibook-area-network:
aliases:
- docs.vuetibook.local
mock_server:
build:
context: .
dockerfile: Dockerfile.dev
target: mock-server
volumes:
- './mocks:/data'
container_name: mock-server
command: sh -c "yarn install && nodemon server.js"
networks:
vuetibook-area-network:
aliases:
- mocks.vuetibook.local
networks:
vuetibook-area-network:
name: vuetibook-area