This file contains hidden or 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
#!/usr/bin/env bash | |
db_user="project_name" | |
db_password="123456" | |
db_name="project_name" | |
db_port=5432 | |
timeout=10 # wait 10 seconds | |
echo 'Postgresql startup script' | |
echo 'stop' |
This file contains hidden or 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 jboss/wildfly | |
MAINTAINER Nikita Lvov | |
USER jboss | |
ENV POSTGRESQL_JDBC_DRIVER_VERSION 9.4-1206-jdbc42 | |
RUN curl -O http://central.maven.org/maven2/org/postgresql/postgresql/${POSTGRESQL_JDBC_DRIVER_VERSION}/postgresql-${POSTGRESQL_JDBC_DRIVER_VERSION}.jar |
This file contains hidden or 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
services: | |
web: | |
image: 'redmine:passenger' | |
container_name: 'redmine_web' | |
restart: always | |
ports: | |
- '3000:3000' | |
links: | |
- postgres | |
environment: |
This file contains hidden or 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/bash | |
# This script will help you setup Docker for TLS authentication. | |
# Run it passing in the arguement for the FQDN of your docker server | |
# | |
# For example: | |
# ./create-docker-tls.sh myhost.docker.com | |
# | |
# The script will also create a profile.d (if it exists) entry | |
# which configures your docker client to use TLS | |
# |
This file contains hidden or 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
var express = require('express'); | |
var subapp = require('./subapp'); | |
var app = express(); | |
app.use('/subpath/', subapp); | |
//Backward compatibility Express4 to Express3, this is only works for Express3 | |
subapp.route = subapp.mountpath; |