Skip to content

Instantly share code, notes, and snippets.

@atusy
Created September 20, 2018 07:27
Show Gist options
  • Save atusy/f4882a345d21eab9fc36c4159e0087c0 to your computer and use it in GitHub Desktop.
Save atusy/f4882a345d21eab9fc36c4159e0087c0 to your computer and use it in GitHub Desktop.
docker-compose.override.yml for Growi with HackMD
version: '3'
services:
##
# HackMD(CodiMD) container
# see https://github.com/hackmdio/codimd#configuration
#
hackmd:
build:
context: ./hackmd
environment:
- GROWI_URI=http://192.168.5.38:3000
- HMD_DB_URL=mysql://hackmd:hackmdpass@mariadb:3306/hackmd
- HMD_CSP_ENABLE=false
ports:
- 3100:3000 # localhost only by default
depends_on:
- mariadb
##
# MariaDB
# see https://hub.docker.com/_/mariadb/
mariadb:
image: mariadb:10.3
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci
environment:
- MYSQL_USER=hackmd
- MYSQL_PASSWORD=hackmdpass
- MYSQL_DATABASE=hackmd
- MYSQL_RANDOM_ROOT_PASSWORD=true
volumes:
- mariadb_data:/var/lib/mysql
volumes:
mariadb_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment