feat: mvp
This commit is contained in:
38
compose.yaml
Normal file
38
compose.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
services:
|
||||
db:
|
||||
image: postgres
|
||||
restart: always
|
||||
ports:
|
||||
- 5432:5432
|
||||
environment:
|
||||
POSTGRES_USER: root
|
||||
POSTGRES_PASSWORD: mysecretpassword
|
||||
POSTGRES_DB: local
|
||||
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql
|
||||
frontend:
|
||||
profiles:
|
||||
- frontend
|
||||
build: .
|
||||
ports:
|
||||
- 5173:3000
|
||||
environment:
|
||||
DATABASE_URL: 'postgres://root:mysecretpassword@db:5432/local'
|
||||
ORIGIN: 'http://localhost:5173'
|
||||
AUTH_SECRET: ${AUTH_SECRET}
|
||||
AUTH_TRUST_HOST: true
|
||||
AUTH_NEXTCLOUD_ID: ${AUTH_NEXTCLOUD_ID}
|
||||
AUTH_NEXTCLOUD_SECRET: ${AUTH_NEXTCLOUD_SECRET}
|
||||
AUTH_NEXTCLOUD_ISSUER: ${AUTH_NEXTCLOUD_ISSUER}
|
||||
|
||||
depends_on:
|
||||
- db
|
||||
develop:
|
||||
watch:
|
||||
- path: .
|
||||
action: rebuild
|
||||
target: /app
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
Reference in New Issue
Block a user