Skip to content

Instantly share code, notes, and snippets.

@akira345
Created July 2, 2019 12:59
Show Gist options
  • Save akira345/6f50c23b34b3b9d0d2cf3b6dddc9da4a to your computer and use it in GitHub Desktop.
Save akira345/6f50c23b34b3b9d0d2cf3b6dddc9da4a to your computer and use it in GitHub Desktop.
Dockerでknowledgeを動かすdocker-composeサンプル。jwilder/nginx-proxyを使用。VIRTUAL_HOSTは適宜変えること。
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
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