fix for older compose version, fix for repo name with _

This commit is contained in:
Krzysztof Szumny 2015-08-18 12:42:24 +02:00
parent 7f747b9264
commit 9caa719082
2 changed files with 7 additions and 4 deletions

View File

@ -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"]

View File

@ -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/