Update location of config files

This commit is contained in:
Arik Fraimovich 2015-11-23 15:46:00 +02:00
parent 3781b0758e
commit ce46295dd3
3 changed files with 12 additions and 6 deletions

View File

@ -18,17 +18,23 @@ fi
# Base packages
apt-get update
# apt-get install -y python-pip python-dev nginx curl build-essential pwgen
apt-get install -y python-pip
# Install Docker
# TODO: copy script into setup files
# TODO: copy script into setup files?
curl -sSL https://get.docker.com/ | sh
pip install docker-compose
mkdir /opt/redash-docker
mkdir /opt/redash-docker/nginx
mkdir /opt/redash-docker/postgres-data
mkdir /opt/redash-docker/supervisord
# Get docker-compose file
wget $FILES_BASE_URL"docker-compose.yml"
wget $FILES_BASE_URL"docker-compose.yml" -O /opt/redash-docker/docker-compose.yml
wget $FILES_BASE_URL"nginx_redash_site" -O /opt/redash-docker/nginx/nginx.conf
# Add to .profile docker compose file location
# Setup upstart (?) for docker-compose
wget $FILES_BASE_URL"upstart.conf" -O /etc/init/redash-docker.conf

View File

@ -17,12 +17,12 @@ redis:
postgres:
image: postgres:9.3
volumes:
- /opt/postgres-data:/var/lib/postgresql/data
- /opt/redash-docker/postgres-data:/var/lib/postgresql/data
nginx:
image: nginx
ports:
- "80:80"
volumes:
- "./setup/docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf"
- "/opt/redash-docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf"
links:
- redash

View File

@ -3,5 +3,5 @@ start on filesystem and started docker
stop on runlevel [!2345]
respawn
script
docker-compose -f /home/ubuntu/docker-compose.yml up
docker-compose -f /opt/redash-docker/docker-compose.yml up
end script