Skip to content

Commit 3792702

Browse files
author
Vincent Vankrunkelsven
committed
chore: revert using newer node version and run npm install
1 parent 28c870d commit 3792702

6 files changed

+315
-17332
lines changed

.nvmrc

-1
This file was deleted.

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18.7.0
1+
FROM node:8.16
22

33
RUN apt-get update && apt-get install -y python build-essential
44

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ You'll need docker and docker-compose to run this stack locally
2626

2727
- Copy the .env.sample to .env and change relevant variables
2828
- If you already have a mysql db running on port 3306, update the `DATABASE_PORT` to another value as well as the port mapping in docker-compose.yml (e.g. change it to `"3308:3306"`)
29-
- Make sure you are using version 2 of docker-compose, then run `docker-compose up -d` to fire up a local redis an mysql
30-
- Use the same node version in your terminal as the Dockerfile is using: `nvm use` (will use version in `.nvmrc`)
29+
- Make sure you are using version 2 of docker-compose, then run `docker-compose create` to create the redis and mysql container
30+
- `docker-compose start` to fire up a local redis an mysql
31+
- Use the same node version in your terminal as the Dockerfile is using: `nvm use 8.16`
3132
- `npm install`
3233
- Run the database migrations by doing `npm run migrate`
3334
- `npm run start-dev`
@@ -47,6 +48,7 @@ follow these steps:
4748
4. `ALTER USER 'root' IDENTIFIED WITH mysql_native_password BY 'password';`
4849
5. `flush privileges;`
4950

51+
5052
## Deployment
5153

5254
- Commits to master are deployed to staging

docker-compose.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
version: "2"
22
services:
33
db:
4-
image: mysql:5.7
4+
image: mysql:latest
55
ports:
66
- "3306:3306"
77
environment:
88
MYSQL_ROOT_PASSWORD: password
99
MYSQL_USER: rdoc
1010
MYSQL_PASSWORD: password
1111
MYSQL_DATABASE: rdocs
12-
platform: linux/amd64
1312
redis:
1413
image: redis
1514
ports:

0 commit comments

Comments
 (0)