Prepare for an eventual frontend
Move the backend code into a backend/ directory, and create a frontend/ directory containing an empty sveltekit project.
This commit is contained in:
parent
88f8ef867c
commit
25641a670d
25 changed files with 461 additions and 2 deletions
16
compose.yml
16
compose.yml
|
|
@ -3,7 +3,7 @@ services:
|
|||
image: docker.io/library/postgres:alpine
|
||||
container_name: postgres
|
||||
env_file:
|
||||
- .env
|
||||
- backend/.env
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
|
|
@ -11,6 +11,20 @@ services:
|
|||
- postgres_data:/var/lib/postgresql/data:Z
|
||||
restart: unless-stopped
|
||||
|
||||
frontend:
|
||||
image: oven/bun:latest
|
||||
container_name: frontend
|
||||
working_dir: /app
|
||||
command: bun run dev --host
|
||||
ports:
|
||||
- "5173:5173"
|
||||
volumes:
|
||||
- ./frontend:/app:Z
|
||||
# env_file:
|
||||
# - frontend/.env
|
||||
restart: unless-stopped
|
||||
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue