Created
June 18, 2022 09:48
-
-
Save limejuny/d7ff4501ac9cdf8c70546fef6f6b8d54 to your computer and use it in GitHub Desktop.
wiki.js docker-compose
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
version: "3" | |
services: | |
db: | |
image: postgres:11-alpine | |
environment: | |
POSTGRES_DB: {{{ DB NAME }}} | |
POSTGRES_PASSWORD: {{{ DB PASSWORD }}} | |
POSTGRES_USER: {{{ DB USER NAME }}} | |
logging: | |
driver: "none" | |
restart: unless-stopped | |
volumes: | |
- /etc/timezone:/etc/timezone:ro | |
- /etc/localtime:/etc/localtime:ro | |
- pgdata:/var/lib/postgresql/data | |
wiki: | |
image: ghcr.io/requarks/wiki:2 | |
depends_on: | |
- db | |
environment: | |
LETSENCRYPT_DOMAIN: {{{ DOMAIN }}} | |
LETSENCRYPT_EMAIL: {{{ EMAIL }}} | |
SSL_ACTIVE: 1 | |
DB_TYPE: postgres | |
DB_HOST: db | |
DB_PORT: {{{ DB PORT }}} | |
DB_USER: {{{ DB USER NAME }}} | |
DB_PASS: {{{ DB PASSWORD }}} | |
DB_NAME: {{{ DB NAME }}} | |
UPGRADE_COMPANION: 1 | |
restart: unless-stopped | |
volumes: | |
- /etc/timezone:/etc/timezone:ro | |
- /etc/localtime:/etc/localtime:ro | |
- /home/ubuntu/wiki/favicon.ico:/wiki/assets/favicon.ico:ro | |
- /home/ubuntu/wiki/favicons:/wiki/assets/favicons:ro | |
ports: | |
- "80:3000" | |
- "443:3443" | |
wiki-update-companion: | |
build: wiki-update-companion/. | |
depends_on: | |
- wiki | |
restart: unless-stopped | |
volumes: | |
- /etc/timezone:/etc/timezone:ro | |
- /etc/localtime:/etc/localtime:ro | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
volumes: | |
pgdata: | |
name: pgdata | |
networks: | |
default: | |
name: wikinet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment