Skip to content

Instantly share code, notes, and snippets.

@vovanmix
Last active July 4, 2017 06:40
Show Gist options
  • Save vovanmix/6a9962fdac7a9606c3df24e295e500aa to your computer and use it in GitHub Desktop.
Save vovanmix/6a9962fdac7a9606c3df24e295e500aa to your computer and use it in GitHub Desktop.
google app engine docker.md

https://hub.docker.com/r/rehabstudio/appengine-dev/

this is not working yet, the port is not accessible outside

  gae-storage-container:
    image: debian
    volumes:
      - ./tmp/appengine_storage:/.appengine_storage
    command: chown -R 1000:1000 /.appengine_storage

  appengine-dev:
    image: rehabstudio/appengine-dev
    ports:
      - "0.0.0.0:8000:8000"
    volumes_from:
      - gae-storage-container
    volumes:
      - ./backend:/app
    command: bash -c "echo 'n' | dev_appserver.py /app"
image: google/cloud-sdk:latest
    hostname: mydatastore
    volumes:
      - ./appengine:/app
      - ./tmp/appengine_storage:/appengine_storage
    ports:
      - "8879:8879"
    expose:
      - 8879
    command: gcloud beta emulators datastore start --project=myproject --host-port mydatastore:8879 --store-on-disk --data-dir=/appengine_storage

  my_dev_appserver:
    image: google/cloud-sdk:latest
    volumes:
      - ./appengine:/app
      - ./tmp/appengine_storage:/appengine_storage
    ports:
      - "8001:8000"
    expose:
      - 8000
    environment:
      no_proxy: 127.0.0.1,localhost
    command: bash -c "echo 'n' | dev_appserver.py --admin_host 0.0.0.0 --datastore_path=/appengine_storage/datastore /app";
    command: gcloud beta emulators datastore start --no-legacy --project=myproject --host-port mydatastore:8879 --store-on-disk --data-dir=/appengine_storage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment