mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
add django-cms
This commit is contained in:
parent
521f611fcd
commit
d9f8e19db2
@ -37,6 +37,7 @@ A collection of delicious docker recipes.
|
||||
- [x] dante
|
||||
- [x] delegated
|
||||
- [x] discuz :cn:
|
||||
- [x] django-cms
|
||||
- [x] dnscrypt
|
||||
- [x] dnscrypt-proxy
|
||||
- [x] dnscrypt-wrapper
|
||||
|
17
django-cms/Dockerfile
Normal file
17
django-cms/Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
#
|
||||
# Dockerfile for django-cms
|
||||
#
|
||||
|
||||
FROM vimagick/python:2
|
||||
MAINTAINER kev <noreply@easypi.info>
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN set -xe \
|
||||
&& apk add -U py-pillow tzdata \
|
||||
&& pip install djangocms-installer \
|
||||
&& djangocms -q -l en --utc -f -p . mysite
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["python", "manage.py", "runserver", "0.0.0.0:80"]
|
34
django-cms/README.md
Normal file
34
django-cms/README.md
Normal file
@ -0,0 +1,34 @@
|
||||
django-cms
|
||||
==========
|
||||
|
||||
[django CMS][1] is a modern web publishing platform built with Django, the web
|
||||
application framework “for perfectionists with deadlines”.
|
||||
|
||||
### docker-compose.yml
|
||||
|
||||
```yaml
|
||||
django-cms:
|
||||
image: vimagick/django-cms
|
||||
ports:
|
||||
- "8000:80"
|
||||
restart: always
|
||||
```
|
||||
|
||||
### up and running
|
||||
|
||||
```bash
|
||||
$ docker-compose up -d
|
||||
|
||||
$ docker-compose exec django-cms sh
|
||||
/app # ./manage.py createsuperuser
|
||||
Username (leave blank to use 'root'): admin
|
||||
Email address: admin@easypi.info
|
||||
Password: ******
|
||||
Password (again): ******
|
||||
Superuser created successfully.
|
||||
/app # exit
|
||||
|
||||
$ firefox http://easypi.info:8000
|
||||
```
|
||||
|
||||
[1]: https://www.django-cms.org/en/
|
5
django-cms/docker-compose.yml
Normal file
5
django-cms/docker-compose.yml
Normal file
@ -0,0 +1,5 @@
|
||||
django-cms:
|
||||
image: vimagick/django-cms
|
||||
ports:
|
||||
- "8000:80"
|
||||
restart: always
|
Loading…
Reference in New Issue
Block a user