mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-31 10:19:54 +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_PASS changeme
|
||||
|
@ -18,5 +18,6 @@ COPY sshd_config /etc/ssh/sshd_config
|
|||
COPY entrypoint /
|
||||
|
||||
EXPOSE 22
|
||||
EXPOSE 8000
|
||||
|
||||
ENTRYPOINT ["/entrypoint"]
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
postgres:
|
||||
extends:
|
||||
file: dev.yml
|
||||
service: postgres
|
||||
image: postgres
|
||||
volumes:
|
||||
# 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:
|
||||
build: compose/pycharm/
|
||||
|
|
Loading…
Reference in New Issue
Block a user