Skip to content

Instantly share code, notes, and snippets.

@shofetim
Created March 24, 2015 00:13
Show Gist options
  • Select an option

  • Save shofetim/a4581b190a4dda72cc16 to your computer and use it in GitHub Desktop.

Select an option

Save shofetim/a4581b190a4dda72cc16 to your computer and use it in GitHub Desktop.
bhv:
image: azurestandard/beehive
command: /srv/beehive/manage.py runserver 0.0.0.0:8000 --settings=env.bh_dev
links:
- redis
- postgres
- es
# - memcached
environment:
- "REDIS_PORT=tcp://redis_1:6379"
# - "MEMCACHED_PORT=tcp://memcached_1:11211"
- "POSTGRESQL_PORT=tcp://postgres_1:5432"
- "ELASTICSEARCH_PORT=tcp://es_1:9200"
- "CSW_URL_BASE=http://warehouse:8080" # add to your local /etc/hosts: 127.0.0.1 warehouse
volumes:
- .:/srv/beehive
- /dev/log:/dev/log # Allows calls to syslog to function
ports:
- "8000:8000"
web:
image: azurestandard/beehive
command: /srv/beehive/manage.py runserver 0.0.0.0:8080 --settings=env.csw_dev
links:
- redis
- postgres
- es
# - memcached
environment:
- "REDIS_PORT=tcp://redis_1:6379"
# - "MEMCACHED_PORT=tcp://memcached_1:11211"
- "POSTGRESQL_PORT=tcp://postgres_1:5432"
- "ELASTICSEARCH_PORT=tcp://es_1:9200"
- "CSW_URL_BASE=http://warehouse:8080" # add to your local /etc/hosts: 127.0.0.1 warehouse
volumes:
- .:/srv/beehive
- /dev/log:/dev/log # Allows calls to syslog to function
ports:
- "8080:8080"
celery:
image: azurestandard/beehive
command: /srv/beehive/manage.py celeryd
links:
- redis
- postgres
- es
# - memcached
environment:
- "REDIS_PORT=tcp://redis_1:6379"
- "POSTGRESQL_PORT=tcp://postgres_1:5432"
- "ELASTICSEARCH_PORT=tcp://es_1:9200"
# - "MEMCACHED_PORT=tcp://memcached_1:11211"
volumes:
- .:/srv/beehive
- /dev/log:/dev/log # Allows calls to syslog to function
postgres:
image: azurestandard/postgresql:9.3.5
ports:
- "5432:5432"
volumes:
- /var/lib/postgresql:/var/lib/postgresql
redis:
image: azurestandard/redis:2.6.17
# Generally not needed for development.
# memcached:
# image: azurestandard/memcached
# ports:
# - "11211:11211"
es:
image: azurestandard/elasticsearch:0.90.9
volumes:
- /var/log/elasticsearch:/var/log/elasticsearch
- /var/data/elasticsearch:/var/data/elasticsearch
- /var/lib/elasticsearch:/elasticsearch/data
ports:
- "9200:9200"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment