mirror of https://github.com/Requarks/wiki.git
Nick
5 years ago
35 changed files with 447 additions and 35 deletions
Split View
Diff Options
-
1CHANGELOG.md
-
22Makefile
-
2dev/build/Dockerfile
-
0dev/docker-common/wait.sh
-
21dev/docker-mariadb/Dockerfile
-
14dev/docker-mariadb/config.yml
-
61dev/docker-mariadb/docker-compose.yml
-
7dev/docker-mariadb/init.sh
-
3dev/docker-mssql/Dockerfile
-
14dev/docker-mssql/config.yml
-
60dev/docker-mssql/docker-compose.yml
-
7dev/docker-mssql/init.sh
-
21dev/docker-mysql/Dockerfile
-
14dev/docker-mysql/config.yml
-
61dev/docker-mysql/docker-compose.yml
-
7dev/docker-mysql/init.sh
-
21dev/docker-postgres/Dockerfile
-
0dev/docker-postgres/config.yml
-
4dev/docker-postgres/docker-compose.yml
-
4dev/docker-postgres/init.sh
-
21dev/docker-sqlite/Dockerfile
-
10dev/docker-sqlite/config.yml
-
35dev/docker-sqlite/docker-compose.yml
-
6dev/docker-sqlite/init.sh
-
2server/core/config.js
-
2server/core/localization.js
-
9server/models/authentication.js
-
7server/models/editors.js
-
4server/models/groups.js
-
7server/models/locales.js
-
7server/models/loggers.js
-
7server/models/renderers.js
-
7server/models/searchEngines.js
-
7server/models/settings.js
-
7server/models/storage.js
@ -0,0 +1,21 @@ |
|||
# -- DEV DOCKERFILE -- |
|||
# -- DO NOT USE IN PRODUCTION! -- |
|||
|
|||
FROM node:10-alpine |
|||
LABEL maintainer "requarks.io" |
|||
|
|||
RUN apk update && \ |
|||
apk add bash curl git python make g++ nano openssh gnupg --no-cache && \ |
|||
mkdir -p /wiki |
|||
|
|||
WORKDIR /wiki |
|||
COPY package.json . |
|||
RUN yarn --silent |
|||
COPY ./dev/docker-mariadb/init.sh ./init.sh |
|||
|
|||
ENV dockerdev 1 |
|||
ENV DEVDB mariadb |
|||
|
|||
EXPOSE 3000 |
|||
|
|||
CMD ["tail", "-f", "/dev/null"] |
@ -0,0 +1,14 @@ |
|||
port: 3000 |
|||
bindIP: 0.0.0.0 |
|||
db: |
|||
type: mariadb |
|||
host: db |
|||
port: 3306 |
|||
user: wikijs |
|||
pass: wikijsrocks |
|||
db: wiki |
|||
redis: |
|||
host: redis |
|||
port: 6379 |
|||
db: 0 |
|||
logLevel: info |
@ -0,0 +1,61 @@ |
|||
# -- DEV DOCKER-COMPOSE -- |
|||
# -- DO NOT USE IN PRODUCTION! -- |
|||
|
|||
version: "3" |
|||
services: |
|||
|
|||
redis: |
|||
image: redis:4-alpine |
|||
ports: |
|||
- "16379:6379" |
|||
logging: |
|||
driver: "none" |
|||
networks: |
|||
- wikinet |
|||
|
|||
db: |
|||
image: mariadb:10.3 |
|||
environment: |
|||
MYSQL_DATABASE: wiki |
|||
MYSQL_PASSWORD: wikijsrocks |
|||
MYSQL_USER: wikijs |
|||
MYSQL_ROOT_PASSWORD: wikijsrocks |
|||
logging: |
|||
driver: "none" |
|||
volumes: |
|||
- db-data:/var/lib/mysql |
|||
networks: |
|||
- wikinet |
|||
ports: |
|||
- "13306:3306" |
|||
|
|||
adminer: |
|||
image: adminer:latest |
|||
logging: |
|||
driver: "none" |
|||
networks: |
|||
- wikinet |
|||
ports: |
|||
- "3001:8080" |
|||
|
|||
wiki: |
|||
build: |
|||
context: . |
|||
dockerfile: dev/docker-mariadb/Dockerfile |
|||
depends_on: |
|||
- db |
|||
- redis |
|||
networks: |
|||
- wikinet |
|||
ports: |
|||
- "3000:3000" |
|||
volumes: |
|||
- .:/wiki |
|||
- /wiki/node_modules |
|||
command: ["sh", "./dev/docker-mariadb/init.sh"] |
|||
|
|||
networks: |
|||
wikinet: |
|||
|
|||
volumes: |
|||
db-data: |
@ -0,0 +1,7 @@ |
|||
#!/bin/sh |
|||
|
|||
echo "Waiting for redis and mariadb to start up..." |
|||
bash ./dev/docker-common/wait.sh redis:6379 |
|||
bash ./dev/docker-common/wait.sh db:3306 |
|||
echo "=== READY ===" |
|||
tail -f /dev/null |
@ -0,0 +1,14 @@ |
|||
port: 3000 |
|||
bindIP: 0.0.0.0 |
|||
db: |
|||
type: mssql |
|||
host: db |
|||
port: 1433 |
|||
user: SA |
|||
pass: W1kiJSR0cks! |
|||
db: wiki |
|||
redis: |
|||
host: redis |
|||
port: 6379 |
|||
db: 0 |
|||
logLevel: info |
@ -0,0 +1,60 @@ |
|||
# -- DEV DOCKER-COMPOSE -- |
|||
# -- DO NOT USE IN PRODUCTION! -- |
|||
|
|||
version: "3" |
|||
services: |
|||
|
|||
redis: |
|||
image: redis:4-alpine |
|||
ports: |
|||
- "16379:6379" |
|||
logging: |
|||
driver: "none" |
|||
networks: |
|||
- wikinet |
|||
|
|||
db: |
|||
image: mcr.microsoft.com/mssql/server:2017-latest |
|||
environment: |
|||
ACCEPT_EULA: 'Y' |
|||
MSSQL_PID: Developer |
|||
SA_PASSWORD: W1kiJSR0cks! |
|||
logging: |
|||
driver: "none" |
|||
volumes: |
|||
- db-data:/var/opt/mssql |
|||
networks: |
|||
- wikinet |
|||
ports: |
|||
- "11433:1433" |
|||
|
|||
adminer: |
|||
image: adminer:latest |
|||
logging: |
|||
driver: "none" |
|||
networks: |
|||
- wikinet |
|||
ports: |
|||
- "3001:8080" |
|||
|
|||
wiki: |
|||
build: |
|||
context: . |
|||
dockerfile: dev/docker-mssql/Dockerfile |
|||
depends_on: |
|||
- db |
|||
- redis |
|||
networks: |
|||
- wikinet |
|||
ports: |
|||
- "3000:3000" |
|||
volumes: |
|||
- .:/wiki |
|||
- /wiki/node_modules |
|||
command: ["sh", "./dev/docker-mssql/init.sh"] |
|||
|
|||
networks: |
|||
wikinet: |
|||
|
|||
volumes: |
|||
db-data: |
@ -0,0 +1,7 @@ |
|||
#!/bin/sh |
|||
|
|||
echo "Waiting for redis and mssql to start up..." |
|||
bash ./dev/docker-common/wait.sh redis:6379 |
|||
bash ./dev/docker-common/wait.sh db:1433 |
|||
echo "=== READY ===" |
|||
tail -f /dev/null |
@ -0,0 +1,21 @@ |
|||
# -- DEV DOCKERFILE -- |
|||
# -- DO NOT USE IN PRODUCTION! -- |
|||
|
|||
FROM node:10-alpine |
|||
LABEL maintainer "requarks.io" |
|||
|
|||
RUN apk update && \ |
|||
apk add bash curl git python make g++ nano openssh gnupg --no-cache && \ |
|||
mkdir -p /wiki |
|||
|
|||
WORKDIR /wiki |
|||
COPY package.json . |
|||
RUN yarn --silent |
|||
COPY ./dev/docker-mysql/init.sh ./init.sh |
|||
|
|||
ENV dockerdev 1 |
|||
ENV DEVDB mysql |
|||
|
|||
EXPOSE 3000 |
|||
|
|||
CMD ["tail", "-f", "/dev/null"] |
@ -0,0 +1,14 @@ |
|||
port: 3000 |
|||
bindIP: 0.0.0.0 |
|||
db: |
|||
type: mysql |
|||
host: db |
|||
port: 3306 |
|||
user: wikijs |
|||
pass: wikijsrocks |
|||
db: wiki |
|||
redis: |
|||
host: redis |
|||
port: 6379 |
|||
db: 0 |
|||
logLevel: info |
@ -0,0 +1,61 @@ |
|||
# -- DEV DOCKER-COMPOSE -- |
|||
# -- DO NOT USE IN PRODUCTION! -- |
|||
|
|||
version: "3" |
|||
services: |
|||
|
|||
redis: |
|||
image: redis:4-alpine |
|||
ports: |
|||
- "16379:6379" |
|||
logging: |
|||
driver: "none" |
|||
networks: |
|||
- wikinet |
|||
|
|||
db: |
|||
image: mysql:5.7 |
|||
environment: |
|||
MYSQL_DATABASE: wiki |
|||
MYSQL_PASSWORD: wikijsrocks |
|||
MYSQL_USER: wikijs |
|||
MYSQL_ROOT_PASSWORD: wikijsrocks |
|||
logging: |
|||
driver: "none" |
|||
volumes: |
|||
- db-data:/var/lib/mysql |
|||
networks: |
|||
- wikinet |
|||
ports: |
|||
- "13306:3306" |
|||
|
|||
adminer: |
|||
image: adminer:latest |
|||
logging: |
|||
driver: "none" |
|||
networks: |
|||
- wikinet |
|||
ports: |
|||
- "3001:8080" |
|||
|
|||
wiki: |
|||
build: |
|||
context: . |
|||
dockerfile: dev/docker-mysql/Dockerfile |
|||
depends_on: |
|||
- db |
|||
- redis |
|||
networks: |
|||
- wikinet |
|||
ports: |
|||
- "3000:3000" |
|||
volumes: |
|||
- .:/wiki |
|||
- /wiki/node_modules |
|||
command: ["sh", "./dev/docker-mysql/init.sh"] |
|||
|
|||
networks: |
|||
wikinet: |
|||
|
|||
volumes: |
|||
db-data: |
@ -0,0 +1,7 @@ |
|||
#!/bin/sh |
|||
|
|||
echo "Waiting for redis and mysql to start up..." |
|||
bash ./dev/docker-common/wait.sh redis:6379 |
|||
bash ./dev/docker-common/wait.sh db:3306 |
|||
echo "=== READY ===" |
|||
tail -f /dev/null |
@ -0,0 +1,21 @@ |
|||
# -- DEV DOCKERFILE -- |
|||
# -- DO NOT USE IN PRODUCTION! -- |
|||
|
|||
FROM node:10-alpine |
|||
LABEL maintainer "requarks.io" |
|||
|
|||
RUN apk update && \ |
|||
apk add bash curl git python make g++ nano openssh gnupg --no-cache && \ |
|||
mkdir -p /wiki |
|||
|
|||
WORKDIR /wiki |
|||
COPY package.json . |
|||
RUN yarn --silent |
|||
COPY ./dev/docker-postgres/init.sh ./init.sh |
|||
|
|||
ENV dockerdev 1 |
|||
ENV DEVDB postgres |
|||
|
|||
EXPOSE 3000 |
|||
|
|||
CMD ["tail", "-f", "/dev/null"] |
@ -1,7 +1,7 @@ |
|||
#!/bin/sh |
|||
|
|||
echo "Waiting for redis and postgres to start up..." |
|||
bash ./dev/docker/wait.sh redis:6379 |
|||
bash ./dev/docker/wait.sh db:5432 |
|||
bash ./dev/docker-common/wait.sh redis:6379 |
|||
bash ./dev/docker-common/wait.sh db:5432 |
|||
echo "=== READY ===" |
|||
tail -f /dev/null |
@ -0,0 +1,21 @@ |
|||
# -- DEV DOCKERFILE -- |
|||
# -- DO NOT USE IN PRODUCTION! -- |
|||
|
|||
FROM node:10-alpine |
|||
LABEL maintainer "requarks.io" |
|||
|
|||
RUN apk update && \ |
|||
apk add bash curl git python make g++ nano openssh gnupg sqlite --no-cache && \ |
|||
mkdir -p /wiki |
|||
|
|||
WORKDIR /wiki |
|||
COPY package.json . |
|||
RUN yarn --silent |
|||
COPY ./dev/docker-sqlite/init.sh ./init.sh |
|||
|
|||
ENV dockerdev 1 |
|||
ENV DEVDB sqlite |
|||
|
|||
EXPOSE 3000 |
|||
|
|||
CMD ["tail", "-f", "/dev/null"] |
@ -0,0 +1,10 @@ |
|||
port: 3000 |
|||
bindIP: 0.0.0.0 |
|||
db: |
|||
type: sqlite |
|||
storage: /wiki/db.sqlite |
|||
redis: |
|||
host: redis |
|||
port: 6379 |
|||
db: 0 |
|||
logLevel: info |
@ -0,0 +1,35 @@ |
|||
# -- DEV DOCKER-COMPOSE -- |
|||
# -- DO NOT USE IN PRODUCTION! -- |
|||
|
|||
version: "3" |
|||
services: |
|||
|
|||
redis: |
|||
image: redis:4-alpine |
|||
ports: |
|||
- "16379:6379" |
|||
logging: |
|||
driver: "none" |
|||
networks: |
|||
- wikinet |
|||
|
|||
wiki: |
|||
build: |
|||
context: . |
|||
dockerfile: dev/docker-sqlite/Dockerfile |
|||
depends_on: |
|||
- redis |
|||
networks: |
|||
- wikinet |
|||
ports: |
|||
- "3000:3000" |
|||
volumes: |
|||
- .:/wiki |
|||
- /wiki/node_modules |
|||
command: ["sh", "./dev/docker-sqlite/init.sh"] |
|||
|
|||
networks: |
|||
wikinet: |
|||
|
|||
volumes: |
|||
db-data: |
@ -0,0 +1,6 @@ |
|||
#!/bin/sh |
|||
|
|||
echo "Waiting for redis to start up..." |
|||
bash ./dev/docker-common/wait.sh redis:6379 |
|||
echo "=== READY ===" |
|||
tail -f /dev/null |
Write
Preview
Loading…
Cancel
Save