Skip to content

Instantly share code, notes, and snippets.

@robhaswell
Created March 24, 2015 13:09
Show Gist options
  • Save robhaswell/557c25c91f99beff5afd to your computer and use it in GitHub Desktop.
Save robhaswell/557c25c91f99beff5afd to your computer and use it in GitHub Desktop.
#
# Example fig.yml to deploy evething.
#
web:
build: evething
ports:
- "8080"
environment:
ADMIN_NAME: Administrator
ADMIN_EMAIL: someone@somewhere.com
SECRET_KEY: "change this"
links:
- mail
- memcached
environment:
FIG_DB_1_PORT_5432_TCP_ADDR: 1.2.3.4 # postgres IP
FIG_DB_1_PORT_5432_TCP_PORT: 5432
mail:
image: elsdoerfer/exim-sender
dns: # Docker's DNS is not compatible with Exim
- 8.8.8.8
- 4.4.4.4
environment:
ALLOWED_HOSTS: "*"
redis:
image: redis
memcached:
image: sylvainlasnier/memcached
celery:
image: fig_web # This is the web container's built image - depends on the directory name of fig.yml
command: celery worker -A evething -B -Q et_high,et_medium,et_low -c 2 -b redis://fig_redis_1/
working_dir: /opt/evething
links:
- db
- redis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment