-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
159 lines (150 loc) Β· 3.8 KB
/
docker-compose.yml
File metadata and controls
159 lines (150 loc) Β· 3.8 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
version: "3.9"
services:
init:
container_name: bite-init
image: node:16-alpine
working_dir: /app
volumes:
- ./package.json:/app/package.json
- ./yarn.lock:/app/yarn.lock
- ./node_modules/:/app/node_modules/
networks:
- net
command:
- yarn
dev:
container_name: bite-dev
image: node:16-alpine
working_dir: /app
volumes:
- ./src/:/app/src/
- ./public/:/app/public/
- ./node_modules/:/app/node_modules/
- ./vite.config.ts:/app/vite.config.ts
- ./index.html:/app/index.html
- ./postcss.config.js:/app/postcss.config.js
- ./tailwind.config.js:/app/tailwind.config.js
- ./tsconfig.json:/app/tsconfig.json
- ./package.json:/app/package.json
networks:
- net
expose:
- 8080
ports:
- 8080:8080
#For local docker-compose development environment
command:
- yarn
- dev
# For codespaces or devcontanier development environment
# command: /bin/sh -c "while sleep 1000; do :; done"
serve:
container_name: bite-serve
image: node:16-alpine
working_dir: /app
volumes:
- dist:/app/dist
- ./node_modules/:/app/node_modules/
- ./package.json:/app/package.json
networks:
- net
expose:
- 9090
ports:
- 9090:9090
#For local docker-compose development environment
command:
- yarn
- serve
# For codespaces or devcontanier development environment
# command: /bin/sh -c "while sleep 1000; do :; done"
build:
container_name: bite-build
image: node:16-alpine
working_dir: /app
volumes:
- ./src/:/app/src/
- ./public/:/app/public/
- ./node_modules/:/app/node_modules/
- dist:/app/dist/
- ./vite.config.ts:/app/vite.config.ts
- ./index.html:/app/index.html
- ./postcss.config.js:/app/postcss.config.js
- ./tailwind.config.js:/app/tailwind.config.js
- ./tsconfig.json:/app/tsconfig.json
- ./package.json:/app/package.json
networks:
- net
command:
- yarn
- build
sb:
container_name: bite-sb
image: node:16-alpine
working_dir: /app
volumes:
- ./src/:/app/src/
- ./node_modules/:/app/node_modules/
- ./.storybook/:/app/.storybook/
- ./index.html:/app/index.html
- ./postcss.config.js:/app/postcss.config.js
- ./tailwind.config.js:/app/tailwind.config.js
- ./tsconfig.json:/app/tsconfig.json
- ./package.json:/app/package.json
networks:
- net
expose:
- 6006
ports:
- 6006:6006
#For local docker-compose development environment
command:
- yarn
- storybook
#For codespaces or devcontanier development environment
# command: /bin/sh -c "while sleep 1000; do :; done"
sb-build:
container_name: bite-sb-build
image: node:16-alpine
volumes:
- ./src/:/app/src/
- ./public/:/app/public/
- ./node_modules/:/app/node_modules/
- dist_sb:/app/dist_sb/
- ./.storybook/:/app/.storybook/
- ./vite.config.ts:/app/vite.config.ts
- ./index.html:/app/index.html
- ./postcss.config.js:/app/postcss.config.js
- ./tailwind.config.js:/app/tailwind.config.js
- ./tsconfig.json:/app/tsconfig.json
- ./package.json:/app/package.json
working_dir: /app
networks:
- net
command:
- yarn
- build-storybook
sb-prod:
container_name: bite-sb-prod
image: nginx:stable-alpine
working_dir: /usr/share/nginx/html
volumes:
- dist_sb:/usr/share/nginx/html/
- ./nginx.conf:/etc/nginx/nginx.conf
networks:
- net
expose:
- 80
ports:
- 7007:80
command:
- nginx
- -g
- daemon off;
networks:
net:
driver: bridge
name: bite_net
volumes:
dist:
dist_sb: