Created
April 14, 2021 01:24
-
-
Save tvilo/c6c069b4cba46d080960776a3f393cec to your computer and use it in GitHub Desktop.
docker
This file contains hidden or 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
| # USING PORTAINER, CREATE NEW STACK USING WEB EDITOR AS BUILD METHOD AND PASTE THE FOLLOWING CODE, THEN DEPLOY | |
| version: '2' | |
| services: | |
| db: | |
| image: postgres:11-alpine | |
| environment: | |
| POSTGRES_DB: wiki | |
| POSTGRES_PASSWORD: wikijsrocks | |
| POSTGRES_USER: wikijs | |
| logging: | |
| driver: "none" | |
| restart: unless-stopped | |
| volumes: | |
| - db-data:/var/lib/postgresql/data | |
| wiki: | |
| image: requarks/wiki:2 | |
| depends_on: | |
| - db | |
| environment: | |
| DB_TYPE: postgres | |
| DB_HOST: db | |
| DB_PORT: 5432 | |
| DB_USER: wikijs | |
| DB_PASS: wikijsrocks | |
| DB_NAME: wiki | |
| restart: unless-stopped | |
| ports: | |
| - "80:3000" | |
| volumes: | |
| db-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment