Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Central - Docker Image

This image builds the container that runs Abla Fahita's Central

Dependencies

Redis

Two redis instances are required: redis_local which will handle content caching and redis_central which
will handle system-wide caching for things that should be shared with other instances.

Local

Create the data directory at /data/redis/local with writable mode.

sudo docker run -d -p 6379:6379 --name redis_local -v /data/redis/local:/data vinelab\redis

Central

  • Create the data directory at /data/redis/central with writable mode.

  • Run container

sudo docker run -d -p 6380:6379 --name redis_central -v /data/redis/central:/data vinelab/redis

Neo4j

  • Create the storage directory at /data/neo4j with writable mode.

  • Run container

sudo docker run -d -p 7474:7474 --name neo4j \
    -v /data/neo4j:/var/lib/neo4j/data \
    vinelab/neo4j

Run

Replace variables wrapped with [ ] by their actual values.

FPM (Stable)

sudo docker run -d -p 7080:80 --name central \
    -v /var/log/nginx/central:/var/log/nginx \
    -v /home/ec2-user/code/central:/var/www/site \
    -v /home/ec2-user/ops/provisioning/config/central/host.conf:/etc/nginx/conf.d/site.conf \
    --link redis_local:redis_local \
    --link redis_central:redis_central \
    --link neo4j:db \
    --hostname [HOSTNAME] \
    --env MANDRILL_KEY=[MANDRILL_KEY]
    --env AWS_ACCESS_KEY=[AWS_ACCESS_KEY]
    --env AWS_ACCESS_SECRET=[AWS_ACCESS_SECRET]
    ablafahita/central

HHVM (Experimental)

sudo docker run -d -p 7000:80 --name central \
    -v /var/log/nginx:/var/log/nginx \
    -v /home/ec2-user/code/central:/var/www/site \
    -v /home/ec2-user/ops/provisioning/config/central/host.hhvm.conf:/etc/nginx/conf.d/site.conf \
    --link redis_local:redis_local \
    --link redis_central:redis_central \
    --link neo4j:db \
    --hostname [HOSTNAME] \
    --env-file /home/ec2-user/ops/provisioning/config/central/env.list \
    ablafahita/central:hhvm
Docker Pull Command
Owner
ablafahita
Source Repository