Untitled
raw download clone
TEXT
views 24
,
size 736 b
version: '3'

services:
  postgres:
    image: postgres:11.7-alpine
    ports:
      - "127.0.0.1:5432:5432"
    environment:
      PGPASSWORD: "atlas"
      PGUSER: "atlas"
#       used in makefile and for image
      POSTGRES_PASSWORD: "atlas"
      POSTGRES_USER: "atlas"
      POSTGRES_DB: "atlas"
      POSTGRES_TEST_DB: "test_atlas"
  app:
    build:
      context: .
    command: python ../app/manage.py runserver 127.0.0.1:8000
    volumes:
      - ./app:/app
    ports:
      - "8000:8000"
    depends_on:
      - postgres



FROM python:3.7

ENV PYTHONUNBUFFERED 1

COPY ./requirements.txt /requirements.txt
RUN pip install -r /requirements.txt

RUN mkdir /app
WORKDIR /app
COPY ./app /app
close fullscreen
Login or Register to edit or fork this paste. It's free.