commiting docker compose files

This commit is contained in:
Oliver Marks 2016-05-25 21:13:43 +01:00
parent 8f4f67c31e
commit 4f4fafed3f
4 changed files with 33 additions and 4 deletions

View File

@ -2,7 +2,7 @@
#
# VERSION 0.0.1
FROM ubuntu:14.04
FROM ubuntu:16.04
MAINTAINER Oliver Marks "olymk2@gmail.com"
# make sure the package repository is up to date
@ -11,7 +11,7 @@ RUN \
apt-get upgrade -y && \
apt-get install -y libssl-dev libffi-dev && \
apt-get install -y software-properties-common python-software-properties && \
apt-get install -y python-MySQLdb python-psycopg2 python-requests-oauthlib python-pip python-dev python-dateutil python-requests python-lxml python-flask python-flask-login && \
apt-get install -y python-mysqldb python-psycopg2 python-requests-oauthlib python-pip python-dev python-dateutil python-requests python-lxml python-flask python-flask-login python-pillow && \
apt-get install -y cssmin slimit && \
add-apt-repository -y ppa:oly/ppa && \
apt-get update && \
@ -28,3 +28,4 @@ ENTRYPOINT /bin/sh -c 'cd /var/www/site; python index.py'
#docker build -t mhackspace .
#docker run -d --name=mhackspace_container --restart=always mhackspace
#accesss on dockerip 172.17.0.?:5000
#https://hub.docker.com/r/olymk2/mhackspace/

25
docker-compose.yml Normal file
View File

@ -0,0 +1,25 @@
nginx:
image: olymk2/mhackspace
#name: mhackspace
links:
- db:database
dns:
- 8.8.8.8
- 8.8.4.4
ports:
- "5000:5000"
volumes:
- .:/var/www
restart: always
db:
image: mariadb
ports:
- "3300:3306"
environment:
MYSQL_DATABASE: maidstone_hackspace
MYSQL_USER: mhackspace
MYSQL_PASSWORD: mhackspace
MYSQL_ROOT_PASSWORD: mhackspace
restart: always

View File

@ -18,8 +18,8 @@ database = {
'charset': 'utf8',
'use_unicode': True,
'type': 'mysql',
'host': '127.0.0.1',
'user': 'root',
'host': 'database',
'user': 'mhackspace',
'passwd': "mhackspace",
'db': "maidstone_hackspace",
'port': 3306}

View File

@ -0,0 +1,3 @@
Please follow the link below to confirm your email address.