🔥(compose) remove app and celery services
`app` and `celery` services are not used when we run the compose configuration. The compose file is only used for development purpose.
This commit is contained in:
@@ -93,7 +93,7 @@ The easiest way to start working on the project is to use [GNU Make](https://www
|
|||||||
$ make bootstrap FLUSH_ARGS='--no-input'
|
$ make bootstrap FLUSH_ARGS='--no-input'
|
||||||
```
|
```
|
||||||
|
|
||||||
This command builds the `app` container, installs dependencies, performs database migrations and compiles translations. It's a good idea to use this command each time you are pulling code from the project repository to avoid dependency-related or migration-related issues.
|
This command builds the `app-dev` and `frontend-dev` containers, installs dependencies, performs database migrations and compiles translations. It's a good idea to use this command each time you are pulling code from the project repository to avoid dependency-related or migration-related issues.
|
||||||
|
|
||||||
Your Docker services should now be up and running 🎉
|
Your Docker services should now be up and running 🎉
|
||||||
|
|
||||||
|
|||||||
@@ -98,40 +98,6 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- app-dev
|
- app-dev
|
||||||
|
|
||||||
app:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
target: backend-production
|
|
||||||
args:
|
|
||||||
DOCKER_USER: ${DOCKER_USER:-1000}
|
|
||||||
user: ${DOCKER_USER:-1000}
|
|
||||||
image: impress:backend-production
|
|
||||||
environment:
|
|
||||||
- DJANGO_CONFIGURATION=Demo
|
|
||||||
env_file:
|
|
||||||
- env.d/development/common
|
|
||||||
- env.d/development/postgresql
|
|
||||||
depends_on:
|
|
||||||
postgresql:
|
|
||||||
condition: service_healthy
|
|
||||||
restart: true
|
|
||||||
redis:
|
|
||||||
condition: service_started
|
|
||||||
minio:
|
|
||||||
condition: service_started
|
|
||||||
|
|
||||||
celery:
|
|
||||||
user: ${DOCKER_USER:-1000}
|
|
||||||
image: impress:backend-production
|
|
||||||
command: ["celery", "-A", "impress.celery_app", "worker", "-l", "INFO"]
|
|
||||||
environment:
|
|
||||||
- DJANGO_CONFIGURATION=Demo
|
|
||||||
env_file:
|
|
||||||
- env.d/development/common
|
|
||||||
- env.d/development/postgresql
|
|
||||||
depends_on:
|
|
||||||
- app
|
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:1.25
|
image: nginx:1.25
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
Reference in New Issue
Block a user