chore: add UI to docker-compose.yaml

ref: #248 #385
This commit is contained in:
2024-11-10 22:38:24 +09:30
parent c4f396af2e
commit 8837811c18
2 changed files with 24 additions and 4 deletions

View File

@ -68,6 +68,14 @@ Included within the root of the repository is a makefile that can be used during
> this doc is yet to receive a re-write
## Docker Container
within the `deploy/` directory there is a docker compose file. running `docker compose up` from this directory will launch a full stack deployment locally containing Centurion API, User Interface, a worker and a RabbitMQ server. once launched you can navigate to `http://127.0.0.1/` to start browsing the site.
You may need to run migrations if your not mounting your own DB. to do this run `docker exec -ti centurion-erp python manage.py migrate`
# Old working docs

View File

@ -10,14 +10,13 @@ x-app: &centurion
# - default
volumes:
- ./volumes/data:/data:rw
- ./volumes/etc/itsm:/etc/itsm:ro
- ../app/db.sqlite3:/data/db.sqlite3:rw
- ./volumes/etc/itsm:/etc/itsm
- ./settings.tmp.py:/etc/itsm/settings.py:ro
services:
centurion:
<<: *centurion
@ -43,6 +42,19 @@ services:
centurion-ui:
image: ghcr.io/nofusscomputing/centurion-erp-ui:dev
restart: always
container_name: centurion-ui
environment:
- API_URL=http://127.0.0.1:8000/api/v2
hostname: centurion-ui
network_mode: "host"
depends_on:
- centurion
rabbitmq:
image: rabbitmq:4.0.3-management-alpine
container_name: rabbitmq