-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
95 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
FROM requarks/wiki:latest | ||
# -- DEV DOCKERFILE -- | ||
# -- DO NOT USE IN PRODUCTION! -- | ||
|
||
# Replace with your email address: | ||
ENV WIKI_ADMIN_EMAIL [email protected] | ||
FROM node:8-alpine | ||
LABEL maintainer "requarks.io" | ||
|
||
RUN apk update && \ | ||
apk add bash curl git python make g++ --no-cache && \ | ||
mkdir -p /var/wiki | ||
|
||
WORKDIR /var/wiki | ||
COPY package.json . | ||
RUN yarn --silent | ||
|
||
# Replace your-config.yml with the path to your config file: | ||
ADD your-config.yml config.yml | ||
ENV dockerdev 1 | ||
|
||
EXPOSE 3000 | ||
ENTRYPOINT [ "node", "server" ] | ||
|
||
CMD ["tail", "-f", "/dev/null"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
port: 3000 | ||
paths: | ||
content: ./content | ||
data: ./data | ||
db: | ||
type: postgres | ||
host: db | ||
port: 5432 | ||
user: wikijs | ||
pass: wikijsrocks | ||
db: wiki | ||
redis: | ||
host: redis | ||
port: 6379 | ||
db: 0 | ||
logLevel: info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM requarks/wiki:latest | ||
|
||
# Replace with your email address: | ||
ENV WIKI_ADMIN_EMAIL [email protected] | ||
|
||
WORKDIR /var/wiki | ||
|
||
# Replace your-config.yml with the path to your config file: | ||
ADD your-config.yml config.yml | ||
|
||
EXPOSE 3000 | ||
ENTRYPOINT [ "node", "server" ] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# -- 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: postgres:9-alpine | ||
environment: | ||
POSTGRES_DB: wiki | ||
POSTGRES_PASSWORD: wikijsrocks | ||
POSTGRES_USER: wikijs | ||
logging: | ||
driver: "none" | ||
volumes: | ||
- db-data:/var/lib/postgresql/data | ||
networks: | ||
- wikinet | ||
ports: | ||
- "15432:5432" | ||
|
||
wiki: | ||
build: | ||
context: . | ||
dockerfile: dev/docker/Dockerfile | ||
depends_on: | ||
- db | ||
- redis | ||
networks: | ||
- wikinet | ||
ports: | ||
- "3000:3000" | ||
volumes: | ||
- .:/var/wiki | ||
- /var/wiki/node_modules | ||
|
||
networks: | ||
wikinet: | ||
|
||
volumes: | ||
db-data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters