1
0
Fork 0

Use MariaDB for docker

merge-requests/108/head
Nikos Roussos 2015-04-07 17:25:39 +03:00
parent afb6a38814
commit adea75fef1
3 changed files with 10 additions and 4 deletions

View File

@ -1,7 +1,8 @@
FROM centos:7
RUN yum makecache
RUN yum -y install epel-release
RUN yum -y install -y python python-pip python-devel git gcc libjpeg-turbo-devel libxml2-devel libxslt-devel postgresql-devel
RUN yum -y install -y python python-pip python-devel git gcc libjpeg-turbo-devel \
libxml2-devel libxslt-devel mysql-devel mysql
RUN yum -y clean all
COPY ./requirements/ /tmp/requirements/

View File

@ -1,5 +1,10 @@
db:
image: postgres:9.3
image: mariadb:5.5
environment:
- MYSQL_DATABASE=network
- MYSQL_USER=network
- MYSQL_PASSWORD=network
- MYSQL_ROOT_PASSWORD=toor
web:
build: .
ports:
@ -12,6 +17,6 @@ web:
- DJANGO_SETTINGS_MODULE=network.settings.dev
- DEFAULT_FROM_EMAIL=noreply@example.com
- ALLOWED_HOSTS=*
- DATABASE_URL=postgres://postgres@db/postgres
- DATABASE_URL=mysql://network:network@db/network
command:
./bin/run-fig.sh

View File

@ -1,4 +1,4 @@
# Local development dependencies go here
-r dev.txt
psycopg2==2.5.4
MySQL-python==1.2.5