Use MariaDB for docker
parent
afb6a38814
commit
adea75fef1
|
@ -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/
|
||||
|
|
9
fig.yml
9
fig.yml
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Local development dependencies go here
|
||||
-r dev.txt
|
||||
|
||||
psycopg2==2.5.4
|
||||
MySQL-python==1.2.5
|
||||
|
|
Loading…
Reference in New Issue