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
|
image: redis
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
restart: always
|
restart: "always"
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- data
|
- data
|
||||||
@@ -19,7 +19,7 @@ postgres:
|
|||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
|
|
||||||
data:
|
data:
|
||||||
restart: no
|
restart: "no"
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
volumes:
|
volumes:
|
||||||
- /var/lib/postgresql
|
- /var/lib/postgresql
|
||||||
@@ -56,7 +56,7 @@ web:
|
|||||||
image: fergalmoran/dss.web
|
image: fergalmoran/dss.web
|
||||||
env_file:
|
env_file:
|
||||||
- ./web_env
|
- ./web_env
|
||||||
restart: always
|
restart: "always"
|
||||||
links:
|
links:
|
||||||
- "redis:redis"
|
- "redis:redis"
|
||||||
ports:
|
ports:
|
||||||
@@ -82,7 +82,7 @@ radio:
|
|||||||
- "icecast:icecast"
|
- "icecast:icecast"
|
||||||
- "api:api"
|
- "api:api"
|
||||||
nginx:
|
nginx:
|
||||||
restart: always
|
restart: "always"
|
||||||
build: ./nginx/
|
build: ./nginx/
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
|
|||||||
@@ -21,10 +21,14 @@ server {
|
|||||||
listen 80;
|
listen 80;
|
||||||
server_name api.deepsouthsounds.com api-test.deepsouthsounds.com;
|
server_name api.deepsouthsounds.com api-test.deepsouthsounds.com;
|
||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
|
|
||||||
location /assets/grappelli {
|
location /assets/grappelli {
|
||||||
alias /usr/local/lib/python2.7/site-packages/grappelli/static/grappelli;
|
alias /usr/local/lib/python2.7/site-packages/grappelli/static/grappelli;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /assets {
|
||||||
|
alias /files/static;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://api:8001;
|
proxy_pass http://api:8001;
|
||||||
@@ -45,6 +49,7 @@ server {
|
|||||||
listen 443 default ssl;
|
listen 443 default ssl;
|
||||||
|
|
||||||
server_name www.deepsouthsounds.com ext-test.deepsouthsounds.com;
|
server_name www.deepsouthsounds.com ext-test.deepsouthsounds.com;
|
||||||
|
root /files/static/;
|
||||||
|
|
||||||
ssl_certificate /etc/nginx/ssl/dss.crt;
|
ssl_certificate /etc/nginx/ssl/dss.crt;
|
||||||
ssl_certificate_key /etc/nginx/ssl/dss.key;
|
ssl_certificate_key /etc/nginx/ssl/dss.key;
|
||||||
@@ -55,11 +60,20 @@ server {
|
|||||||
|
|
||||||
client_max_body_size 250M;
|
client_max_body_size 250M;
|
||||||
|
|
||||||
|
location ~ /\.(eot|otf|ttf|woff)$ {
|
||||||
|
add_header Access-Control-Allow-Origin *;
|
||||||
|
}
|
||||||
|
|
||||||
location /media {
|
location /media {
|
||||||
alias /files/media;
|
alias /files/media;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
#if ($request_filename ~* ^.*?/([^/]*?)$) {
|
||||||
|
# set $filename $1;
|
||||||
|
#}
|
||||||
|
#if ($filename ~* ^.*?\.(eot)|(ttf)|(woff)$){
|
||||||
|
# add_header Access-Control-Allow-Origin *;
|
||||||
|
#}
|
||||||
proxy_pass http://web:8080;
|
proxy_pass http://web:8080;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
|
|||||||
@@ -1,6 +1 @@
|
|||||||
export PATH=$PATH:/mnt/bin/
|
docker-compose pull && docker-compose build && docker-compose up -d
|
||||||
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user