mirror of
https://github.com/c0de-archive/django-cms.git
synced 2024-12-21 17:52:41 +00:00
dockerfile consistency change
This commit is contained in:
parent
56784cfe4f
commit
9cbf38ee84
@ -1,7 +1,7 @@
|
||||
FROM python:2.7
|
||||
|
||||
WORKDIR /src
|
||||
ADD . /src
|
||||
ADD ./cms /src
|
||||
|
||||
RUN set -ex \
|
||||
&& curl -L https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh -o /usr/local/bin/wait-for-it.sh \
|
||||
|
@ -12,7 +12,7 @@ services:
|
||||
ports:
|
||||
- '5432:5432'
|
||||
|
||||
imagehost_portal:
|
||||
django:
|
||||
build: .
|
||||
environment:
|
||||
PORTAL_DEBUG: 'true'
|
||||
@ -21,14 +21,14 @@ services:
|
||||
POSTGRES_DB: cms_db
|
||||
POSTGRES_HOST: postgres
|
||||
volumes:
|
||||
- .:/portal
|
||||
- ./cms:/src
|
||||
ports:
|
||||
- '8000:8000'
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
working_dir: /portal
|
||||
working_dir: /src
|
||||
|
||||
command: |
|
||||
/usr/local/bin/wait-for-it.sh -t 60 postgres:5432 --
|
||||
sh /portal/run.sh
|
||||
sh /src/run.sh
|
||||
|
Loading…
Reference in New Issue
Block a user