mirror of
https://github.com/fergalmoran/dss.docker.git
synced 2025-12-22 09:18:29 +00:00
merge branch 'master' of https://github.com/fergalmoran/dss.docker
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -2,3 +2,7 @@
|
|||||||
dss.web
|
dss.web
|
||||||
dss.api
|
dss.api
|
||||||
dss.radio
|
dss.radio
|
||||||
|
|
||||||
|
api_env
|
||||||
|
web_env
|
||||||
|
radio_env
|
||||||
|
|||||||
Binary file not shown.
@@ -2,11 +2,14 @@ rabbitmq:
|
|||||||
image: tutum/rabbitmq
|
image: tutum/rabbitmq
|
||||||
environment:
|
environment:
|
||||||
- RABBITMQ_PASS=wZ59kFTJZN8YQ
|
- RABBITMQ_PASS=wZ59kFTJZN8YQ
|
||||||
ports:
|
ports:
|
||||||
- "4369:4369"
|
- "4369:4369"
|
||||||
- "5672:5672"
|
- "5672:5672"
|
||||||
- "15672:15672"
|
- "15672:15672"
|
||||||
|
|
||||||
|
redis:
|
||||||
|
image: redis
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
restart: always
|
restart: always
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
@@ -15,9 +18,6 @@ postgres:
|
|||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
|
|
||||||
redis:
|
|
||||||
image: redis
|
|
||||||
|
|
||||||
data:
|
data:
|
||||||
restart: no
|
restart: no
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
@@ -26,7 +26,9 @@ data:
|
|||||||
command: /bin/true
|
command: /bin/true
|
||||||
|
|
||||||
celery:
|
celery:
|
||||||
build: ./dss.api
|
image: fergalmoran/dss.api
|
||||||
|
env_file:
|
||||||
|
- ./api_env
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- api
|
- api
|
||||||
links:
|
links:
|
||||||
@@ -36,11 +38,13 @@ celery:
|
|||||||
command: ./run_celery.sh
|
command: ./run_celery.sh
|
||||||
|
|
||||||
api:
|
api:
|
||||||
build: ./dss.api
|
image: fergalmoran/dss.api
|
||||||
volumes:
|
volumes:
|
||||||
- /files
|
- /files
|
||||||
ports:
|
ports:
|
||||||
- "8001:8001"
|
- "8001:8001"
|
||||||
|
env_file:
|
||||||
|
- ./api_env
|
||||||
links:
|
links:
|
||||||
- "postgres:postgres"
|
- "postgres:postgres"
|
||||||
- "redis:redis"
|
- "redis:redis"
|
||||||
@@ -49,13 +53,34 @@ api:
|
|||||||
command: ./run_web.sh
|
command: ./run_web.sh
|
||||||
|
|
||||||
web:
|
web:
|
||||||
|
image: fergalmoran/dss.web
|
||||||
|
env_file:
|
||||||
|
- ./web_env
|
||||||
restart: always
|
restart: always
|
||||||
build: ./dss.web
|
|
||||||
links:
|
links:
|
||||||
- "redis:redis"
|
- "redis:redis"
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
|
icecast:
|
||||||
|
build: ./icecast/
|
||||||
|
volumes:
|
||||||
|
- ./logs:/var/log/icecast2
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
environment:
|
||||||
|
- ICECAST_SOURCE_PASSWORD=RDzNlgqmj67vk
|
||||||
|
- ICECAST_ADMIN_PASSWORD=CrVuP5evoJZ0
|
||||||
|
- ICECAST_RELAY_PASSWORD=9PmUbI1mLne9o
|
||||||
|
ports:
|
||||||
|
- 8000:8000
|
||||||
|
radio:
|
||||||
|
image: fergalmoran/dss.radio
|
||||||
|
env_file:
|
||||||
|
- ./radio_env
|
||||||
|
ports:
|
||||||
|
- "8888:8888"
|
||||||
|
links:
|
||||||
|
- "icecast:icecast"
|
||||||
|
- "api:api"
|
||||||
nginx:
|
nginx:
|
||||||
restart: always
|
restart: always
|
||||||
build: ./nginx/
|
build: ./nginx/
|
||||||
@@ -67,24 +92,3 @@ nginx:
|
|||||||
- "web:web"
|
- "web:web"
|
||||||
- "icecast:icecast"
|
- "icecast:icecast"
|
||||||
- "radio:radio"
|
- "radio:radio"
|
||||||
volumes_from:
|
|
||||||
- api
|
|
||||||
icecast:
|
|
||||||
build: ./radio/
|
|
||||||
volumes:
|
|
||||||
- ./logs:/var/log/icecast2
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
environment:
|
|
||||||
- ICECAST_SOURCE_PASSWORD=RDzNlgqmj67vk
|
|
||||||
- ICECAST_ADMIN_PASSWORD=CrVuP5evoJZ0
|
|
||||||
- ICECAST_RELAY_PASSWORD=9PmUbI1mLne9o
|
|
||||||
ports:
|
|
||||||
- 8000:8000
|
|
||||||
radio:
|
|
||||||
build: dss.radio/
|
|
||||||
ports:
|
|
||||||
- "8888:8888"
|
|
||||||
links:
|
|
||||||
- "icecast:icecast"
|
|
||||||
- "api:api"
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
FROM ubuntu:trusty
|
FROM ubuntu:trusty
|
||||||
|
|
||||||
MAINTAINER Manfred Touron "m@42.am"
|
MAINTAINER Fergal Moran "Ferg@lMoran.me"
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
@@ -20,6 +20,4 @@ if [ -n "$ICECAST_PASSWORD" ]; then
|
|||||||
sed -i "s/<password>[^<]*<\/password>/<password>$ICECAST_PASSWORD<\/password>/g" /etc/icecast2/icecast.xml
|
sed -i "s/<password>[^<]*<\/password>/<password>$ICECAST_PASSWORD<\/password>/g" /etc/icecast2/icecast.xml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat /etc/icecast2/icecast.xml
|
|
||||||
|
|
||||||
supervisord -n -c /etc/supervisord.conf
|
supervisord -n -c /etc/supervisord.conf
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo -u postgres psql -h 127.0.0.1 -c "CREATE DATABASE deepsouthsounds"
|
||||||
sudo -u postgres psql -h 127.0.0.1 -c "CREATE USER deepsouthsounds WITH PASSWORD 'deepsouthsounds'"
|
sudo -u postgres psql -h 127.0.0.1 -c "CREATE USER deepsouthsounds WITH PASSWORD 'deepsouthsounds'"
|
||||||
sudo -u postgres psql -h 127.0.0.1 -c "CREATE DATABASE deepsouthsounds OWNER deepsouthsounds"
|
sudo -u postgres psql -h 127.0.0.1 -c "CREATE DATABASE deepsouthsounds OWNER deepsouthsounds"
|
||||||
sudo -u postgres psql -h 127.0.0.1 deepsouthsounds < /home/fergalm/Dropbox/dss.sql
|
sudo -u postgres psql -h 127.0.0.1 deepsouthsounds < /tmp/20151025-203518.sql
|
||||||
|
|||||||
Reference in New Issue
Block a user