Permalink
Browse files

cleanup docker configs

  • Loading branch information...
vicgarcia committed Dec 19, 2018
1 parent 7404a8e commit 87bf18407d74dd3e0af4b2eca1f2c15668d6d664
Showing with 6 additions and 7 deletions.
  1. +4 −4 docker-compose.yml
  2. +2 −3 docker/django/Dockerfile
@@ -1,25 +1,25 @@
version: '3'

services:

mysql:
image: mysql:5.7
restart: always
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: getmarried
MYSQL_PASSWORD: getmarried
MYSQL_DATABASE: getmarried

django:
build:
context: ./
dockerfile: ./docker/django/Dockerfile
ports:
- "8000:8000"
command: /code/docker/django/start.sh
volumes:
- .:/code
restart: always
ports:
- "8000:8000"
depends_on:
- mysql
@@ -1,8 +1,7 @@
FROM python:3.5-jessie
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
ADD requirements.txt /code/
WORKDIR /code
RUN pip install -r requirements.txt
RUN apt-get update && apt-get install -y mysql-client
ADD . /code/
RUN apt-get update && apt-get install -y mysql-client

0 comments on commit 87bf184

Please sign in to comment.