This script enables you to launch your Rails application in production environment (port:80) with Nginx and Unicorn.
Please make sure that your Gemfile in your rails application includes unicorn.
# First, enable "Listen for incoming notifications" | |
# in Growl preferences and set a password | |
# You might want to use this in an initializer | |
growl = Growl::GNTP.new 'ip_of_your_mac', 'App name' | |
growl.password = 'your_password' | |
# growl.add_notification 'name' | |
# growl.notify 'name', 'title', 'message' |
FROM ubuntu:12.04 | |
MAINTAINER Andrew Hromis "[email protected]" | |
RUN apt-get update -q | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install -qy build-essential curl git | |
RUN curl -s https://go.googlecode.com/files/go1.2.src.tar.gz | tar -v -C /usr/local -xz | |
RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1 | |
ENV PATH /usr/local/go/bin:$PATH | |
RUN git clone git://github.com/elasticsearch/logstash-forwarder.git /opt/logstash-forwarder |
version: '2' | |
services: | |
postgres: | |
image: postgres:9.5 | |
restart: always | |
environment: | |
- "POSTGRES_USER=${POSTGRES_USER}" | |
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}" | |
- "POSTGRES_DB=gogs" | |
volumes: |
I hereby claim:
To claim this, I am signing this object:
version: "3" | |
services: | |
mysql1: | |
image: mysql/mysql-gr:latest | |
command: --group-replication-group-seeds='mysql2:6606,mysql3:6606' --server-id=1 | |
environment: | |
MYSQL_ROOT_PASSWORD: aTestPwd | |
MYSQL_REPLICATION_USER: rpl_user |