Created
December 24, 2019 07:17
-
-
Save nagashima-w/8315394da4af89585802467622ba0841 to your computer and use it in GitHub Desktop.
docker-compose.override.yml
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: | |
https-portal: | |
image: steveltn/https-portal:1 | |
ports: | |
- '80:80' | |
- '443:443' | |
links: | |
- app:app | |
environment: | |
DOMAINS: 'my.domain.com -> http://app:3000' | |
STAGE: 'production' | |
FORCE_RENEW: 'true' | |
WEBSOCKET: 'true' | |
CLIENT_MAX_BODY_SIZE: 0 | |
restart: unless-stopped | |
volumes: | |
- https-portal_data:/var/lib/https-portal | |
hackmd: | |
build: | |
context: ./hackmd | |
environment: | |
- GROWI_URI=https://my.domain.com | |
- CMD_DB_URL=mysql://hackmd:hackmdpass@mariadb:3306/hackmd | |
- CMD_CSP_ENABLE=false | |
ports: | |
- 3100:3000 # localhost only by default | |
depends_on: | |
- mariadb | |
restart: unless-stopped | |
mariadb: | |
image: mariadb:10.3 | |
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci | |
environment: | |
- MYSQL_USER=username | |
- MYSQL_PASSWORD=password | |
- MYSQL_DATABASE=hackmd | |
- MYSQL_RANDOM_ROOT_PASSWORD=true | |
restart: unless-stopped | |
volumes: | |
- mariadb_data:/var/lib/mysql | |
volumes: | |
https-portal_data: | |
mariadb_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment