mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-12-25 16:28:49 +01:00
use mediacms image from docker hub (#69)
* use mediacms image from docker hub
This commit is contained in:
parent
883af9bb4a
commit
3b35ce0262
@ -92,10 +92,10 @@ The default option to serve MediaCMS is on http://localhost. If you want to set
|
||||
Now run
|
||||
|
||||
```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.
|
||||
|
||||
|
@ -9,7 +9,7 @@ services:
|
||||
- /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
|
||||
migrations:
|
||||
image: mediacms:latest
|
||||
image: mediacms/mediacms:latest
|
||||
volumes:
|
||||
- ./:/home/mediacms.io/mediacms/
|
||||
environment:
|
||||
@ -24,10 +24,7 @@ services:
|
||||
db:
|
||||
condition: service_healthy
|
||||
web:
|
||||
build:
|
||||
context: .
|
||||
target: runtime-image
|
||||
image: mediacms:latest
|
||||
image: mediacms/mediacms:latest
|
||||
deploy:
|
||||
replicas: 1
|
||||
volumes:
|
||||
@ -41,7 +38,7 @@ services:
|
||||
depends_on:
|
||||
- migrations
|
||||
celery_beat:
|
||||
image: mediacms:latest
|
||||
image: mediacms/mediacms:latest
|
||||
volumes:
|
||||
- ./:/home/mediacms.io/mediacms/
|
||||
environment:
|
||||
@ -53,7 +50,7 @@ services:
|
||||
depends_on:
|
||||
- redis
|
||||
celery_worker:
|
||||
image: mediacms:latest
|
||||
image: mediacms/mediacms:latest
|
||||
deploy:
|
||||
replicas: 1
|
||||
volumes:
|
||||
|
@ -11,7 +11,7 @@ services:
|
||||
- ./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
|
||||
migrations:
|
||||
image: mediacms:latest
|
||||
image: mediacms/mediacms:latest
|
||||
volumes:
|
||||
- ./:/home/mediacms.io/mediacms/
|
||||
environment:
|
||||
@ -26,10 +26,7 @@ services:
|
||||
db:
|
||||
condition: service_healthy
|
||||
web:
|
||||
build:
|
||||
context: .
|
||||
target: runtime-image
|
||||
image: mediacms:latest
|
||||
image: mediacms/mediacms:latest
|
||||
deploy:
|
||||
replicas: 1
|
||||
volumes:
|
||||
@ -43,7 +40,7 @@ services:
|
||||
depends_on:
|
||||
- migrations
|
||||
celery_beat:
|
||||
image: mediacms:latest
|
||||
image: mediacms/mediacms:latest
|
||||
volumes:
|
||||
- ./:/home/mediacms.io/mediacms/
|
||||
environment:
|
||||
@ -55,7 +52,7 @@ services:
|
||||
depends_on:
|
||||
- redis
|
||||
celery_worker:
|
||||
image: mediacms:latest
|
||||
image: mediacms/mediacms:latest
|
||||
deploy:
|
||||
replicas: 2
|
||||
volumes:
|
||||
|
@ -2,7 +2,7 @@ version: "3"
|
||||
|
||||
services:
|
||||
migrations:
|
||||
image: mediacms:latest
|
||||
image: mediacms/mediacms:latest
|
||||
volumes:
|
||||
- ./deploy/docker/local_settings.py:/home/mediacms.io/mediacms/deploy/docker/local_settings.py
|
||||
environment:
|
||||
@ -17,10 +17,7 @@ services:
|
||||
db:
|
||||
condition: service_healthy
|
||||
web:
|
||||
build:
|
||||
context: .
|
||||
target: runtime-image
|
||||
image: mediacms:latest
|
||||
image: mediacms/mediacms:latest
|
||||
deploy:
|
||||
replicas: 1
|
||||
ports:
|
||||
@ -37,7 +34,7 @@ services:
|
||||
depends_on:
|
||||
- migrations
|
||||
celery_beat:
|
||||
image: mediacms:latest
|
||||
image: mediacms/mediacms:latest
|
||||
volumes:
|
||||
- ./deploy/docker/local_settings.py:/home/mediacms.io/mediacms/deploy/docker/local_settings.py
|
||||
environment:
|
||||
@ -49,7 +46,7 @@ services:
|
||||
depends_on:
|
||||
- redis
|
||||
celery_worker:
|
||||
image: mediacms:latest
|
||||
image: mediacms/mediacms:latest
|
||||
deploy:
|
||||
replicas: 1
|
||||
volumes:
|
||||
|
@ -2,7 +2,7 @@ version: "3"
|
||||
|
||||
services:
|
||||
migrations:
|
||||
image: mediacms:latest
|
||||
image: mediacms/mediacms:latest
|
||||
volumes:
|
||||
- ./:/home/mediacms.io/mediacms/
|
||||
environment:
|
||||
@ -17,10 +17,7 @@ services:
|
||||
db:
|
||||
condition: service_healthy
|
||||
web:
|
||||
build:
|
||||
context: .
|
||||
target: runtime-image
|
||||
image: mediacms:latest
|
||||
image: mediacms/mediacms:latest
|
||||
deploy:
|
||||
replicas: 1
|
||||
ports:
|
||||
@ -35,7 +32,7 @@ services:
|
||||
depends_on:
|
||||
- migrations
|
||||
celery_beat:
|
||||
image: mediacms:latest
|
||||
image: mediacms/mediacms:latest
|
||||
volumes:
|
||||
- ./:/home/mediacms.io/mediacms/
|
||||
environment:
|
||||
@ -47,7 +44,7 @@ services:
|
||||
depends_on:
|
||||
- redis
|
||||
celery_worker:
|
||||
image: mediacms:latest
|
||||
image: mediacms/mediacms:latest
|
||||
deploy:
|
||||
replicas: 1
|
||||
volumes:
|
||||
@ -80,4 +77,4 @@ services:
|
||||
test: ["CMD", "redis-cli","ping"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
retries: 3
|
||||
|
Loading…
Reference in New Issue
Block a user