Add: Docker start-dev script

This commit is contained in:
Sonny
2023-02-14 19:14:27 +01:00
parent 1110734394
commit 7754c87d96
5 changed files with 51 additions and 7134 deletions

View File

@@ -0,0 +1,13 @@
version: "3.8"
services:
my-links-db:
image: mysql:latest
restart: always
environment:
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
ports:
- 3306:3306

1
docker/start-dev.sh Normal file
View File

@@ -0,0 +1 @@
docker-compose --env-file ../.env -f ./docker-compose-dev.yml up -d

View File

@@ -2,6 +2,8 @@ DB_USER="my_user"
DB_PASSWORD=""
DB_DATABASE="my-links"
DATABASE_URL="mysql://${DB_USER}:${DB_PASSWORD}@localhost:3306/${DB_DATABASE}"
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_URL_INTERNAL=http://localhost:3000

7164
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -29,6 +29,7 @@
"@types/react": "^18.0.27",
"eslint": "8",
"eslint-config-next": "13.1.6",
"prisma": "^4.10.0"
"prisma": "^4.10.0",
"typescript": "4.9.5"
}
}
}