Skip to content

Commit

Permalink
chore: docker config
Browse files Browse the repository at this point in the history
  • Loading branch information
mariadriana-deemaze committed Nov 4, 2024
1 parent f15b35c commit 76181db
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
36 changes: 36 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
services:
pg15:
image: postgres:15
container_name: pg15
environment:
POSTGRES_PASSWORD: root
healthcheck:
test: ["CMD-SHELL", "pg_isready --username postgres"]
interval: 1s
timeout: 5s
retries: 10
volumes:
- pg15:/var/lib/postgresql/data
- ./pg-init:/docker-entrypoint-initdb.d
ports:
- 127.0.0.1:5432:5432
networks:
- social-adonis

# redis7:
# image: redis:7
# container_name: redis7
# hostname: redis
# ports:
# - 10179:6379
# networks:
# - social-adonis

volumes:
pg15:

networks:
social-adonis:
name: social-adonis
driver: bridge
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "hello-world",
"name": "social-adonis",
"version": "0.0.0",
"private": true,
"type": "module",
Expand Down
3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ export default defineConfig({
reload: ['resources/views/**/*.edge'],
}),
inertia({ ssr: { enabled: true, entrypoint: 'inertia/app/ssr.tsx' } }),
react(),
adonisjs({ entrypoints: ['inertia/app/app.tsx'], reload: ['resources/views/**/*.edge'] }),
react()
],
resolve:{
alias:{
Expand Down

0 comments on commit 76181db

Please sign in to comment.