Skip to content

Instantly share code, notes, and snippets.

@psychemedia
Last active January 11, 2017 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psychemedia/dedb841c827535ad5789a3db7d29a713 to your computer and use it in GitHub Desktop.
Save psychemedia/dedb841c827535ad5789a3db7d29a713 to your computer and use it in GitHub Desktop.
gw loader

To get these scripts up and running, you will need to install Docker on your computer or be able to run Docker containers on a third party cloud server.

Note - there seemed to be a problem running newly downloaded versions of docker on Macs:-(

Download and install Kitematic. From the bottom right hand corner of Kitematic you can open a Docker command line.

Download the contents of this repository and ensure they're in a directory you can find.

Change directory to the directory containing the docker-compose.yml file and run the command:

docker-compose up -d

This will launch a database container linked to a Jupyter notebook server.

To stop the containers: docker-compose stop To start the containers back up again: docker-compose start

To destroy the containers and their contents: docker-compose down

postgresdatadd:
image: busybox
volumes:
- /var/lib/postgresql/data
postgresdd:
image: postgres #mdillon/postgis
environment:
- POSTGRES_PASSWORD=PGPass
ports:
- "5432:5432"
volumes_from:
- postgresdatadd
datadive:
image: jupyter/scipy-notebook
user: root
environment:
- GRANT_SUDO=yes
ports:
- "9988:8888"
links:
#- mongodb:mongodb
- postgresdd:postgres
#- neo4j:neo4j
volumes:
- .:/home/jovyan/work
#mongodata:
# image: busybox
# volumes:
# - /data/db
#
#mongodb:
# image: mongo
# ports:
# - "27107:27107"
# volumes_from:
# - mongodata
# command: --smallfiles
#
#neo4j:
# image: ryguyrg/neo4j-panama-papers
# ports:
# - "7474:7474"
# - "1337:1337"
# volumes:
# - /opt/data
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment