forked from mystiq/sso
feat: use local_settings in docker-compose
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
d1cb6b1b95
commit
2e9cc6aa7f
3 changed files with 6 additions and 3 deletions
|
@ -158,3 +158,6 @@ cython_debug/
|
||||||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
||||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||||
#.idea/
|
#.idea/
|
||||||
|
|
||||||
|
sso/local_settings.py
|
||||||
|
sso/local_settings/local_settings.py
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
FROM python:3
|
FROM python:3
|
||||||
ENV PYTHONDONTWRITEBYTECODE=1
|
ENV PYTHONDONTWRITEBYTECODE=1
|
||||||
ENV PYTHONUNBUFFERED=1
|
ENV PYTHONUNBUFFERED=1
|
||||||
RUN useradd -ms /bin/bash -u 1001 mystiq-sso
|
#RUN useradd -ms /bin/bash -u 1001 mystiq-sso
|
||||||
USER mystiq-sso
|
#USER mystiq-sso
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
LABEL org.opencontainers.image.source https://git.batsense.net/mystiq/sso
|
LABEL org.opencontainers.image.source https://git.batsense.net/mystiq/sso
|
||||||
COPY requirements.txt /code/
|
COPY requirements.txt /code/
|
||||||
|
|
|
@ -17,7 +17,7 @@ services:
|
||||||
python manage.py migrate &&
|
python manage.py migrate &&
|
||||||
python manage.py runserver 0.0.0.0:8000"
|
python manage.py runserver 0.0.0.0:8000"
|
||||||
volumes:
|
volumes:
|
||||||
- .:/code
|
- ./sso/local_settings:/code/sso/local_settings/
|
||||||
ports:
|
ports:
|
||||||
- 8000:8000
|
- 8000:8000
|
||||||
# environment:
|
# environment:
|
||||||
|
|
Loading…
Reference in a new issue