Public | Automated Build

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

Website Image

The image that builds the container that will run Starac's Website

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 however number of instances we have running.

Local

sudo docker run -d -p 6379:6379 --name redis_local vinelab/redis

Central

  • Run container:
sudo docker run -d -p 6380:6380 --name redis_central vinelab/redis

Run

Change [HOSTNAME] to represent the environment that the central is running on.

PHP-FPM (Stable)

sudo docker run -d -p 7000:80 --name site \
    -v /home/ec2-user/code/central:/var/www/app \
    - /home/ec2-user/ops/config/site/site-env.conf \
    --link redis_local:redis_local \
    --link redis_central:redis_central \
    --hostname [HOSTNAME]  \
    starac/site

HHVM (Experimental)

sudo docker run -d -p 7080:80 --name central-hhvm \
    -v /var/log/nginx/hhvm:/var/log/nginx \
    -v /home/ec2-user/code/central:/var/www/app \
    -v /home/ec2-user/ops/provisioning/config/central/host.hhvm.conf:/etc/nginx/conf.d/app.conf \
    --link redis_local:redis_local \
    --link redis_central:redis_central \
    --link neo4j:db \
    --hostname starac-staging \
    --env-file /home/ec2-user/ops/provisioning/config/central/env.list \
   vinelab/hhvm
Docker Pull Command
Owner
starac

Comments (0)