Add docker configuration
This commit is contained in:
parent
3f797db3f4
commit
c28e1b2b05
|
|
@ -0,0 +1,12 @@
|
|||
FROM iterativ/python3_netcat
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
RUN mkdir /env
|
||||
RUN mkdir /app
|
||||
|
||||
RUN pip install pipenv
|
||||
|
||||
ADD ./server/ /app/
|
||||
#RUN apt-get update && apt-get -y install netcat && apt-get clean
|
||||
#RUN apt-get -y install netcat
|
||||
WORKDIR /app
|
||||
RUN pipenv install --system --deploy
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
FROM python:3.6
|
||||
RUN apt-get update && apt-get install -y netcat
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
db:
|
||||
image: 'postgres'
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=skillbox
|
||||
- POSTGRES_USER=skillbox
|
||||
- POSTGRES_DB=skillbox
|
||||
volumes:
|
||||
- helloclassdb:/var/lib/postgresql/data
|
||||
web:
|
||||
build: .
|
||||
command: python manage.py runserver 0.0.0.0:8000
|
||||
volumes:
|
||||
- "./server:/app"
|
||||
ports:
|
||||
- "8000:8000"
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
volumes:
|
||||
helloclassdb:
|
||||
Loading…
Reference in New Issue