mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-01 02:39:48 +03:00
fix for older compose version, fix for repo name with _
This commit is contained in:
parent
7f747b9264
commit
9caa719082
|
@ -1,4 +1,4 @@
|
||||||
FROM {{cookiecutter.repo_name}}_django
|
FROM {{ cookiecutter.repo_name|replace('_', '') }}_django
|
||||||
|
|
||||||
ENV SFTP_USER docker
|
ENV SFTP_USER docker
|
||||||
ENV SFTP_PASS changeme
|
ENV SFTP_PASS changeme
|
||||||
|
@ -18,5 +18,6 @@ COPY sshd_config /etc/ssh/sshd_config
|
||||||
COPY entrypoint /
|
COPY entrypoint /
|
||||||
|
|
||||||
EXPOSE 22
|
EXPOSE 22
|
||||||
|
EXPOSE 8000
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint"]
|
ENTRYPOINT ["/entrypoint"]
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
postgres:
|
postgres:
|
||||||
extends:
|
image: postgres
|
||||||
file: dev.yml
|
volumes:
|
||||||
service: postgres
|
# If you are using boot2docker, postgres data has to live in the VM for now until #581 is fixed
|
||||||
|
# for more info see here: https://github.com/boot2docker/boot2docker/issues/581
|
||||||
|
- /data/{{cookiecutter.repo_name}}/postgres:/var/lib/postgresql/data
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
build: compose/pycharm/
|
build: compose/pycharm/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user