Skip to content

Commit

Permalink
update docker configure
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriySmolin committed Jun 8, 2024
1 parent c273912 commit 4070c63
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 17 deletions.
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ services:
dockerfile: Dockerfile.dev
volumes:
- .:/app:delegated
ports:
- 5173:5173
command: ["make", "start-frontend"]

database:
Expand All @@ -29,7 +31,7 @@ services:
ports:
- 54320:5432
volumes:
- hexlet-sicp-pgdata:/var/lib/postgresql/data
- hexlet-sicp-pgdata:/var/lib/postgresql/data

volumes:
hexlet-sicp-pgdata:
38 changes: 22 additions & 16 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,30 @@ import laravel from 'laravel-vite-plugin';
import react from '@vitejs/plugin-react';

export default defineConfig({
plugins: [
laravel({
input: [
'resources/js/app.js',
'resources/js/custom.js',
'resources/js/hljs.js',
'resources/js/editor.js',
'resources/sass/app.scss',
'resources/sass/_activity_chart.scss',
'resources/sass/_custom.scss',
],
refresh: true,
}),
react(),
server: {
host: '0.0.0.0',
hmr: {
host: 'localhost',
},
},
plugins: [
laravel({
input: [
'resources/js/app.js',
'resources/js/custom.js',
'resources/js/hljs.js',
'resources/js/editor.js',
'resources/sass/app.scss',
'resources/sass/_activity_chart.scss',
'resources/sass/_custom.scss',
],
refresh: true,
}),
react(),

],
],
build: {
outDir: 'public/build',
emptyOutDir: false,
}
},
});

0 comments on commit 4070c63

Please sign in to comment.