mirror of
https://github.com/fergalmoran/dss.docker.git
synced 2025-12-22 09:18:29 +00:00
Some changes
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -26,6 +26,10 @@ server {
|
||||
alias /usr/local/lib/python2.7/site-packages/grappelli/static/grappelli;
|
||||
}
|
||||
|
||||
location /assets {
|
||||
alias /files/static;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://api:8001;
|
||||
proxy_set_header Host $host;
|
||||
@@ -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";
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user