Instantly share code, notes, and snippets.

Embed
What would you like to do?
Libretime docker setup
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: {}
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
#!/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