Skip to content

Commit

Permalink
Switched know wapp to Wiki.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSchmidle committed Jan 14, 2020
1 parent f628e1b commit cbd4b88
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 33 deletions.
2 changes: 2 additions & 0 deletions composition/ipam/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ services:
- "POSTGRES_USER=${POSTGRES_USER}"
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
image: "postgres"
labels:
- "com.centurylinklabs.watchtower.enable=true"
networks:
- "wapps"
restart: "always"
Expand Down
39 changes: 17 additions & 22 deletions composition/know/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@ networks:
external:
name: "wapps"
services:
mysql-af9dc3cd6ce29d560a1e4077694254d9:
postgres-af9dc3cd6ce29d560a1e4077694254d9:
environment:
- "MYSQL_DATABASE=${MYSQL_DATABASE}"
- "MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}"
- "MYSQL_USER=${MYSQL_USER}"
- "MYSQL_PASSWORD=${MYSQL_PASSWORD}"
image: "mysql:5"
- "POSTGRES_DB=${POSTGRES_DB}"
- "POSTGRES_USER=${POSTGRES_USER}"
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
image: "postgres"
labels:
- "com.centurylinklabs.watchtower.enable=true"
networks:
- "wapps"
restart: "always"
volumes:
- "mysql:/var/lib/mysql"
bookstack:
- "data:/var/lib/postgresql/data"
wikijs:
environment:
- "APP_URL=https://${HOST}"
- "DB_HOST=mysql-af9dc3cd6ce29d560a1e4077694254d9:3306"
- "DB_DATABASE=${MYSQL_DATABASE}"
- "DB_USERNAME=${MYSQL_USER}"
- "DB_PASSWORD=${MYSQL_PASSWORD}"
image: "solidnerd/bookstack"
- "DB_TYPE=postgres"
- "DB_HOST=postgres-af9dc3cd6ce29d560a1e4077694254d9"
- "DB_PORT=5432"
- "DB_USER=${POSTGRES_USER}"
- "DB_PASS=${POSTGRES_PASSWORD}"
- "DB_NAME=${POSTGRES_DB}"
image: "requarks/wiki"
labels:
- "com.centurylinklabs.watchtower.enable=true"
- "traefik.http.routers.bookstack-http.entrypoints=http"
Expand All @@ -34,17 +34,12 @@ services:
- "traefik.http.routers.bookstack-https.entrypoints=https"
- "traefik.http.routers.bookstack-https.rule=Host(`${HOST}`)"
- "traefik.http.routers.bookstack-https.tls.certResolver=wapps"
- "traefik.http.services.bookstack.loadbalancer.server.port=80"
- "traefik.http.services.bookstack.loadbalancer.server.port=3000"
networks:
- "wapps"
restart: "always"
volumes:
- "uploads:/var/www/bookstack/public/uploads"
- "storage:/var/www/bookstack/public/storage"
- ""
volumes:
mysql:
driver: local
uploads:
driver: local
storage:
data:
driver: local
6 changes: 6 additions & 0 deletions composition/safe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
The safe wapp is based on [Passit](https://passit.io/).

> Peace of mind for passwords
# Notes

After deploying and upgrading this wapp, you need to run the database migration routine via the containers command line. Inside Portainer, select the container ``${NAME}_passit_1``. Connect to the container's console, and execute the following command:

``./manage.py migrate``
24 changes: 13 additions & 11 deletions composition/safe/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ networks:
external:
name: "wapps"
services:
postgres-1a1dc91c907325c69271ddf0c944bc72:
environment:
- "POSTGRES_DB=${POSTGRES_DB}"
- "POSTGRES_USER=${POSTGRES_USER}"
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
image: "postgres"
labels:
- "com.centurylinklabs.watchtower.enable=true"
networks:
- "wapps"
restart: "always"
volumes:
- "data:/var/lib/postgresql/data"
passit:
command: "bin/start.sh"
environment:
Expand All @@ -26,17 +39,6 @@ services:
networks:
- "wapps"
restart: "always"
postgres-1a1dc91c907325c69271ddf0c944bc72:
environment:
- "POSTGRES_DB=${POSTGRES_DB}"
- "POSTGRES_USER=${POSTGRES_USER}"
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
image: "postgres"
networks:
- "wapps"
restart: "always"
volumes:
- "data:/var/lib/postgresql/data"
volumes:
data:
driver: local
2 changes: 2 additions & 0 deletions composition/trck/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ services:
- "MYSQL_USER=${MYSQL_USER}"
- "MYSQL_PASSWORD=${MYSQL_PASSWORD}"
image: "mysql:5"
labels:
- "com.centurylinklabs.watchtower.enable=true"
networks:
- "wapps"
restart: "always"
Expand Down

0 comments on commit cbd4b88

Please sign in to comment.