chore: update .gitignore to include data directory and modify docker-compose.yml for external volume mapping
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 20s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 20s
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -41,3 +41,6 @@ yarn-error.log*
|
|||||||
next-env.d.ts
|
next-env.d.ts
|
||||||
|
|
||||||
/src/generated/prisma
|
/src/generated/prisma
|
||||||
|
|
||||||
|
# data
|
||||||
|
data/
|
||||||
@@ -4,7 +4,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "3009:3000"
|
- '3009:3000'
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- DATABASE_URL=file:/app/data/dev.db
|
- DATABASE_URL=file:/app/data/dev.db
|
||||||
@@ -12,8 +12,7 @@ services:
|
|||||||
- AUTH_TRUST_HOST=true
|
- AUTH_TRUST_HOST=true
|
||||||
- AUTH_URL=${AUTH_URL:-https://workshop-manager.julienfroidefond.com}
|
- AUTH_URL=${AUTH_URL:-https://workshop-manager.julienfroidefond.com}
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/app/data
|
- /Volumes/EXTERNAL_USB/sites/workshop-manager/data:/app/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
labels:
|
labels:
|
||||||
- "com.centurylinklabs.watchtower.enable=false"
|
- 'com.centurylinklabs.watchtower.enable=false'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user