Add network to docker-compose for compatability

This commit is contained in:
Tony Hendrick
2020-07-14 13:27:08 -07:00
parent e3bed81af2
commit a17770b824
2 changed files with 8 additions and 1 deletions

2
docker/Dockerfile vendored
View File

@@ -15,6 +15,6 @@ EXPOSE 8000
WORKDIR /usr/src/app/src/
#RUN ../docker/scripts/wait-for-it.sh db:5432
#RUN python3 manage.py migrate
RUN python3 manage.py migrate
#RUN python3 manage.py migrate interface
CMD ["python3", "manage.py", "runserver", "0.0.0.0:8000"]

View File

@@ -21,3 +21,10 @@ services:
- "${PORT}:8000"
depends_on:
- db
networks:
default:
driver: bridge
ipam:
config:
- subnet: 10.20.20.0/24