Last active
June 15, 2018 22:47
-
-
Save mikebranderhorst/8c6dd808a2c44aed5cbce2d74181e4f6 to your computer and use it in GitHub Desktop.
docker-compose.yml example for byteinternet/hypernode-docker (Docker for Mac)
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
# docker-compose.yml (this file) | |
# | |
# create $ docker-compose up --build --detach --quiet-pull | |
# stop $ docker-compose stop | |
# start $ docker-compose start | |
# delete $ docker-compose down | |
# logs $ docker-compose logs --follow | |
# processes $ docker-compose top | |
# bash to / $ docker-compose exec --user app hypernode bash | |
# bash to ~ $ docker-compose exec --user app hypernode bash -c 'cd $BUILDENV; exec "${SHELL:-bash}"' | |
# db passwd $ docker-compose exec --user app hypernode bash -c 'cd $BUILDENV; cat .my.cnf | grep -Po "password = \K(.*)"' | |
# | |
# /\ /\_ _ _ __ ___ _ __ _ __ ___ __| | ___ | |
# / /_/ / | | | '_ \ / _ \ '__| '_ \ / _ \ / _` |/ _ \ | |
# / __ /| |_| | |_) | __/ | | | | | (_) | (_| | __/ | |
# \/ /_/ \__, | .__/ \___|_| |_| |_|\___/ \__,_|\___| | |
# |___/|_| | |
# | |
# https://community.hypernode.io/hypernode-docker/ | |
# https://github.com/ByteInternet/hypernode-docker | |
# | |
# http://localhost:8880 | |
# $ ssh app@127.0.0.1 -p 2222 | |
# > ssh password: insecure_docker_ssh_password | |
# $ mysql -h 127.0.0.1 -P 3307 -u app -p'<passwd>' | |
# > db password: replace <passwd> with password from exec | |
version: "3.6" | |
services: | |
hypernode: | |
container_name: hypernode-docker | |
image: docker.hypernode.com/byteinternet/hypernode-docker:latest | |
ports: | |
- "2222:22" # for ssh or use docker-compose exec instead | |
- "8880:80" # ~/public | |
- "8443:443" # ~/public | |
#- "8880:8880" # ~/staging | |
#- "8443:8443" # ~/staging | |
- "3307:3306" # for mysql or use ssh tunnel instead (2222) | |
# $ mkdir -p ./data-web/magento2 | |
# $ mkdir -p ./data-web/public | |
# $ echo "<?php echo 'public';" > ./data-web/public/index.php | |
# $ mkdir -p ./data-web/staging | |
# $ echo "<?php echo 'staging';" > ./data-web/staging/index.php | |
volumes: | |
- ./data-web/magento2:/data/web/magento2/ | |
- ./data-web/public:/data/web/public/ | |
#- ./data-web/staging:/data/web/staging/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment