mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 01:25:16 +00:00
Update location of config files
This commit is contained in:
parent
3781b0758e
commit
ce46295dd3
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user