Created
July 2, 2019 12:59
-
-
Save akira345/6f50c23b34b3b9d0d2cf3b6dddc9da4a to your computer and use it in GitHub Desktop.
Dockerでknowledgeを動かすdocker-composeサンプル。jwilder/nginx-proxyを使用。VIRTUAL_HOSTは適宜変えること。
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: '2' | |
volumes: | |
knowledge_pgsql_data: | |
driver: local | |
knowledge_data: | |
driver: local | |
services: | |
# knowledge_pgsql | |
knowledge_pgsql: | |
restart: always | |
image: akira345/postgres11-ja_jp-locale:latest | |
volumes: | |
- knowledge_pgsql_data:/var/lib/postgresql/data | |
environment: | |
POSTGRES_INITDB_ARGS: --encoding=UTF-8 --locale=C | |
TZ: "Asia/Tokyo" | |
env_file: | |
- ./pgsql.env | |
# knowledge | |
knowledge: | |
restart: always | |
image: koda/docker-knowledge | |
volumes: | |
- knowledge_data:/root/.knowledge | |
depends_on: | |
- knowledge_pgsql | |
environment: | |
VIRTUAL_HOST: knowledge.example.com | |
VIRTUAL_PORT: 8080 | |
networks: | |
default: | |
external: | |
name: common_link |
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
POSTGRES_DB=knowledge_db | |
POSTGRES_USER=postgres | |
POSTGRES_PASSWORD=admin123 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment