use mediacms image from docker hub (#69)

* use mediacms image from docker hub
This commit is contained in:
Markos Gogoulos 2021-03-08 21:54:09 +02:00 committed by GitHub
parent 883af9bb4a
commit 3b35ce0262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 31 deletions

View File

@ -92,10 +92,10 @@ The default option to serve MediaCMS is on http://localhost. If you want to set
Now run Now run
```bash ```bash
docker-compose build && docker-compose up docker-compose up
``` ```
This will build an image, download and setup necessary Docker images and start all containers. Once it finishes, MediaCMS will be installed and available on http://localhost (or the url you've set as `FRONTEND_HOST` on file `deploy/docker/local_settings.py`) This will download all MediaCMS related Docker images and start all containers. Once it finishes, MediaCMS will be installed and available on http://localhost (or the url you've set as `FRONTEND_HOST` on file `deploy/docker/local_settings.py`)
For more instructions, checkout the docs on the [Docker deployment](docs/Docker_deployment.md) page. Docker Compose support has been contributed by @swiftugandan. For more instructions, checkout the docs on the [Docker deployment](docs/Docker_deployment.md) page. Docker Compose support has been contributed by @swiftugandan.

View File

@ -9,7 +9,7 @@ services:
- /var/run/docker.sock:/tmp/docker.sock:ro - /var/run/docker.sock:/tmp/docker.sock:ro
- ./deploy/docker/reverse_proxy/client_max_body_size.conf:/etc/nginx/conf.d/client_max_body_size.conf:ro - ./deploy/docker/reverse_proxy/client_max_body_size.conf:/etc/nginx/conf.d/client_max_body_size.conf:ro
migrations: migrations:
image: mediacms:latest image: mediacms/mediacms:latest
volumes: volumes:
- ./:/home/mediacms.io/mediacms/ - ./:/home/mediacms.io/mediacms/
environment: environment:
@ -24,10 +24,7 @@ services:
db: db:
condition: service_healthy condition: service_healthy
web: web:
build: image: mediacms/mediacms:latest
context: .
target: runtime-image
image: mediacms:latest
deploy: deploy:
replicas: 1 replicas: 1
volumes: volumes:
@ -41,7 +38,7 @@ services:
depends_on: depends_on:
- migrations - migrations
celery_beat: celery_beat:
image: mediacms:latest image: mediacms/mediacms:latest
volumes: volumes:
- ./:/home/mediacms.io/mediacms/ - ./:/home/mediacms.io/mediacms/
environment: environment:
@ -53,7 +50,7 @@ services:
depends_on: depends_on:
- redis - redis
celery_worker: celery_worker:
image: mediacms:latest image: mediacms/mediacms:latest
deploy: deploy:
replicas: 1 replicas: 1
volumes: volumes:

View File

@ -11,7 +11,7 @@ services:
- ./deploy/docker/reverse_proxy/certs/:/etc/nginx/certs/ - ./deploy/docker/reverse_proxy/certs/:/etc/nginx/certs/
- ./deploy/docker/reverse_proxy/client_max_body_size.conf:/etc/nginx/conf.d/client_max_body_size.conf:ro - ./deploy/docker/reverse_proxy/client_max_body_size.conf:/etc/nginx/conf.d/client_max_body_size.conf:ro
migrations: migrations:
image: mediacms:latest image: mediacms/mediacms:latest
volumes: volumes:
- ./:/home/mediacms.io/mediacms/ - ./:/home/mediacms.io/mediacms/
environment: environment:
@ -26,10 +26,7 @@ services:
db: db:
condition: service_healthy condition: service_healthy
web: web:
build: image: mediacms/mediacms:latest
context: .
target: runtime-image
image: mediacms:latest
deploy: deploy:
replicas: 1 replicas: 1
volumes: volumes:
@ -43,7 +40,7 @@ services:
depends_on: depends_on:
- migrations - migrations
celery_beat: celery_beat:
image: mediacms:latest image: mediacms/mediacms:latest
volumes: volumes:
- ./:/home/mediacms.io/mediacms/ - ./:/home/mediacms.io/mediacms/
environment: environment:
@ -55,7 +52,7 @@ services:
depends_on: depends_on:
- redis - redis
celery_worker: celery_worker:
image: mediacms:latest image: mediacms/mediacms:latest
deploy: deploy:
replicas: 2 replicas: 2
volumes: volumes:

View File

@ -2,7 +2,7 @@ version: "3"
services: services:
migrations: migrations:
image: mediacms:latest image: mediacms/mediacms:latest
volumes: volumes:
- ./deploy/docker/local_settings.py:/home/mediacms.io/mediacms/deploy/docker/local_settings.py - ./deploy/docker/local_settings.py:/home/mediacms.io/mediacms/deploy/docker/local_settings.py
environment: environment:
@ -17,10 +17,7 @@ services:
db: db:
condition: service_healthy condition: service_healthy
web: web:
build: image: mediacms/mediacms:latest
context: .
target: runtime-image
image: mediacms:latest
deploy: deploy:
replicas: 1 replicas: 1
ports: ports:
@ -37,7 +34,7 @@ services:
depends_on: depends_on:
- migrations - migrations
celery_beat: celery_beat:
image: mediacms:latest image: mediacms/mediacms:latest
volumes: volumes:
- ./deploy/docker/local_settings.py:/home/mediacms.io/mediacms/deploy/docker/local_settings.py - ./deploy/docker/local_settings.py:/home/mediacms.io/mediacms/deploy/docker/local_settings.py
environment: environment:
@ -49,7 +46,7 @@ services:
depends_on: depends_on:
- redis - redis
celery_worker: celery_worker:
image: mediacms:latest image: mediacms/mediacms:latest
deploy: deploy:
replicas: 1 replicas: 1
volumes: volumes:

View File

@ -2,7 +2,7 @@ version: "3"
services: services:
migrations: migrations:
image: mediacms:latest image: mediacms/mediacms:latest
volumes: volumes:
- ./:/home/mediacms.io/mediacms/ - ./:/home/mediacms.io/mediacms/
environment: environment:
@ -17,10 +17,7 @@ services:
db: db:
condition: service_healthy condition: service_healthy
web: web:
build: image: mediacms/mediacms:latest
context: .
target: runtime-image
image: mediacms:latest
deploy: deploy:
replicas: 1 replicas: 1
ports: ports:
@ -35,7 +32,7 @@ services:
depends_on: depends_on:
- migrations - migrations
celery_beat: celery_beat:
image: mediacms:latest image: mediacms/mediacms:latest
volumes: volumes:
- ./:/home/mediacms.io/mediacms/ - ./:/home/mediacms.io/mediacms/
environment: environment:
@ -47,7 +44,7 @@ services:
depends_on: depends_on:
- redis - redis
celery_worker: celery_worker:
image: mediacms:latest image: mediacms/mediacms:latest
deploy: deploy:
replicas: 1 replicas: 1
volumes: volumes: