Skip to content

Commit dd855fb

Browse files
Merge pull request #2416 from buildkite/docker-compose-vite
Add dockerized version of the docs
2 parents 3ddc739 + d2034c2 commit dd855fb

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

docker-compose.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,35 @@
1-
version: '3'
1+
version: "3"
22
services:
33
app:
44
build:
55
context: .
66
args:
77
RAILS_ENV: ${RAILS_ENV:-development}
8+
depends_on:
9+
- vite
10+
environment:
11+
VITE_RUBY_HOST: vite
12+
ports:
13+
- "3000:3000"
814
volumes:
9-
- '.:/app'
15+
- ".:/app"
1016
- /app/node_modules
17+
18+
vite:
19+
build:
20+
context: .
21+
args:
22+
RAILS_ENV: ${RAILS_ENV:-development}
23+
entrypoint: bin/vite dev
24+
environment:
25+
DEBUG: "*vite*"
26+
RAILS_ENV: development
27+
VITE_RUBY_HOST: 0.0.0.0
1128
ports:
12-
- '3000:3000'
29+
- "3036:3036"
30+
volumes:
31+
- .:/app
32+
- /app/node_modules
1333

1434
muffet:
1535
depends_on:

0 commit comments

Comments
 (0)