Some changes

This commit is contained in:
Fergal Moran
2015-12-06 16:59:41 +00:00
parent baf1400749
commit 645a211b52
3 changed files with 21 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ redis:
image: redis
postgres:
restart: always
restart: "always"
image: postgres:latest
volumes_from:
- data
@@ -19,7 +19,7 @@ postgres:
- "5432:5432"
data:
restart: no
restart: "no"
image: postgres:latest
volumes:
- /var/lib/postgresql
@@ -56,7 +56,7 @@ web:
image: fergalmoran/dss.web
env_file:
- ./web_env
restart: always
restart: "always"
links:
- "redis:redis"
ports:
@@ -82,7 +82,7 @@ radio:
- "icecast:icecast"
- "api:api"
nginx:
restart: always
restart: "always"
build: ./nginx/
ports:
- "80:80"

View File

@@ -21,10 +21,14 @@ server {
listen 80;
server_name api.deepsouthsounds.com api-test.deepsouthsounds.com;
client_max_body_size 0;
location /assets/grappelli {
alias /usr/local/lib/python2.7/site-packages/grappelli/static/grappelli;
}
location /assets {
alias /files/static;
}
location / {
proxy_pass http://api:8001;
@@ -45,6 +49,7 @@ server {
listen 443 default ssl;
server_name www.deepsouthsounds.com ext-test.deepsouthsounds.com;
root /files/static/;
ssl_certificate /etc/nginx/ssl/dss.crt;
ssl_certificate_key /etc/nginx/ssl/dss.key;
@@ -55,11 +60,20 @@ server {
client_max_body_size 250M;
location ~ /\.(eot|otf|ttf|woff)$ {
add_header Access-Control-Allow-Origin *;
}
location /media {
alias /files/media;
}
location / {
#if ($request_filename ~* ^.*?/([^/]*?)$) {
# set $filename $1;
#}
#if ($filename ~* ^.*?\.(eot)|(ttf)|(woff)$){
# add_header Access-Control-Allow-Origin *;
#}
proxy_pass http://web:8080;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";

View File

@@ -1,6 +1 @@
export PATH=$PATH:/mnt/bin/
git pull && \
cd dss.web && git pull && cd .. && \
cd dss.api && git pull && cd .. && \
cd dss.radio && git pull && cd .. && \
docker-compose build && docker-compose up $1
docker-compose pull && docker-compose build && docker-compose up -d