docs: registry changes (#12)

* docker(prod): update docker-compose.prod.yml to use registry image

* docs(README): update install instructions to use registry image
This commit is contained in:
Herculino Trotta
2024-12-27 12:25:12 -03:00
committed by GitHub
parent 366c0b475d
commit d541b30280
2 changed files with 10 additions and 14 deletions

View File

@@ -48,29 +48,28 @@ Frustrated by the lack of comprehensive options, I set out to build **WYGIWYH**
# How To Use # How To Use
To run this application, you'll need [Git](https://git-scm.com) and [Docker](https://docs.docker.com/engine/install/) with the [docker-compose](https://docs.docker.com/compose/install/). To run this application, you'll need [Docker](https://docs.docker.com/engine/install/) with [docker-compose](https://docs.docker.com/compose/install/).
From your command line: From your command line:
> [!NOTE]
> Docker images for this project are currently under development, but manual setup is available now.
```bash ```bash
# Clone this repository # Clone this repository
$ git clone https://github.com/eitchtee/WYGIWYH $ mkdir WYGIWYH
# Go into the repository # Go into the repository
$ cd WYGIWYH $ cd WYGIWYH
# Fill the .env file with your configurations $ touch docker-compose.yml
$ cp .env.example .env $ nano docker-compose.yml
$ nano .env # or any other editor you want to use # Paste the contents of https://github.com/eitchtee/WYGIWYH/blob/main/docker-compose.prod.yml and edit according to your needs
# Create docker-compose file # Fill the .env file with your configurations
$ cp docker-compose.prod.yml docker-compose.yml $ touch .env
$ nano .env # or any other editor you want to use
# Paste the contents of https://github.com/eitchtee/WYGIWYH/blob/main/.env.example and edit accordingly
# Run the app # Run the app
$ docker compose up -d --build $ docker compose up -d
# Create the first admin account # Create the first admin account
$ docker compose exec -it web python manage.py createsuperuser $ docker compose exec -it web python manage.py createsuperuser

View File

@@ -1,8 +1,5 @@
services: services:
web: &django web: &django
build:
context: .
dockerfile: ./docker/prod/django/Dockerfile
image: ghcr.io/eitchtee/wygiwyh:latest image: ghcr.io/eitchtee/wygiwyh:latest
container_name: ${SERVER_NAME} container_name: ${SERVER_NAME}
command: /start command: /start