Add a few more README things on Docker
Some checks failed
continuous-integration/drone/pr Build is failing
Some checks failed
continuous-integration/drone/pr Build is failing
This commit is contained in:
parent
36d71f180a
commit
d769481848
5
Makefile
5
Makefile
|
@ -1,6 +1,5 @@
|
||||||
DOCKER_COMPOSE = COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker compose
|
DOCKER_COMPOSE = COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker compose
|
||||||
DOCKER_RUN = ${DOCKER_COMPOSE} run -u `id -u`
|
DOCKER_RUN = ${DOCKER_COMPOSE} run -u `id -u`
|
||||||
DOCKER_CONTAINER_NAME = backend
|
|
||||||
MANAGE_EXEC = python /app/src/manage.py
|
MANAGE_EXEC = python /app/src/manage.py
|
||||||
MANAGE_COMMAND = ${DOCKER_RUN} app ${MANAGE_EXEC}
|
MANAGE_COMMAND = ${DOCKER_RUN} app ${MANAGE_EXEC}
|
||||||
|
|
||||||
|
@ -28,5 +27,5 @@ shell:
|
||||||
manage_command:
|
manage_command:
|
||||||
${MANAGE_COMMAND} ${ARGS}
|
${MANAGE_COMMAND} ${ARGS}
|
||||||
|
|
||||||
build_dev_docker_image:
|
build:
|
||||||
${DOCKER_COMPOSE} build ${DOCKER_CONTAINER_NAME}
|
${DOCKER_COMPOSE} build
|
||||||
|
|
13
README.md
13
README.md
|
@ -40,6 +40,19 @@ Working with the Docker Compose setup is made easy with the `Makefile` provided
|
||||||
make run
|
make run
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Building and running other things
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Build the containers
|
||||||
|
make build
|
||||||
|
|
||||||
|
# Create a superuser
|
||||||
|
make createsuperuser
|
||||||
|
|
||||||
|
# Create Django migrations (after this, maybe you need to change file permissions in volume)
|
||||||
|
make makemigrations
|
||||||
|
```
|
||||||
|
|
||||||
### Using hatch
|
### Using hatch
|
||||||
|
|
||||||
#### Requirements
|
#### Requirements
|
||||||
|
|
Loading…
Reference in a new issue