Place the above files in the libertime https://github.com/LibreTime/libretime/ source repository, inside a docker
directory.
Created
September 13, 2017 03:26
-
-
Save CGenie/60693c4f4f9868d416617b330246925e to your computer and use it in GitHub Desktop.
Libretime docker setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
postgres: | |
image: postgres:9.6-alpine | |
environment: | |
POSTGRES_USER: airtime | |
POSTGRES_PASSWORD: airtime | |
POSTGRES_DB: airtime | |
rabbitmq: | |
image: rabbitmq:3 | |
command: '/rabbit-start.sh' | |
volumes: | |
- './rabbit-start.sh:/rabbit-start.sh' | |
libretime: | |
build: | |
context: .. | |
dockerfile: docker/Dockerfile | |
links: | |
- postgres | |
- rabbitmq | |
ports: | |
- '7070:7070' | |
volumes: | |
- libretime-data:/srv/airtime/stor | |
volumes: | |
libretime-data: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu-upstart:14.04 | |
WORKDIR /code | |
COPY ./ /code | |
RUN set -x; \ | |
apt-get update && \ | |
apt-get install -y \ | |
vim | |
RUN set -x; \ | |
./install --force --in-place --verbose --apache --web-port=7070 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -x | |
rabbitmq-server & | |
sleep 8 | |
rabbitmqctl add_vhost /airtime | |
rabbitmqctl add_user airtime airtime | |
rabbitmqctl set_user_tags airtime administrator | |
rabbitmqctl set_permissions -p /airtime airtime ".*" ".*" ".*" | |
tail -F /var/log/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment