Skip to content

Script Docker Compose Dev Migrations

Alexandar83 edited this page Feb 25, 2025 · 3 revisions

Script Breakdown

1. Pulls the required Redis and PostgreSQL images.

2. Ensures Redis and PostgreSQL services are started before proceeding.

3. Waits until PostgreSQL is fully operational before applying Django migrations.

4. Creates the logs folder for application logging.

  • Linux only:

5. Initiates Docker image builds for the application.

  • Linux only:
    • Depends on the following environment variables, defined in the_wall_api_dev.env: LOGS_DIR_NAME, APP_USER_ID, APP_GROUP_ID, and APP_GROUP_NAME.
      The variables are used to:*
      • Create the logs folder within the Celery services' containers.
      • Establish a new group in the Celery services' containers.
      • Create a non-root app user in the Celery services' containers and add it to the new group.
      • 🗒️ Note: These actions ensure both the root user and the app user have shared access to the logs folder within the bind-mounted application directory.

6. Starts Celery services only after the required image they depend on has been successfully built.


Scripts Index
Home Page


Clone this wiki locally