Home Page Forums Public Free Forum Upload the source code of my CodeIgniter website on Coolify Reply To: Upload the source code of my CodeIgniter website on Coolify

  • Hasan

    Administrator
    August 22, 2025 at 7:42 am

    CodeIgniter is PHP based.

    if you are familiar with docker, create a docker file (nginx + php-fpm)

    and you can create the MySQL instance separately with coolify as it has built in 1 installer.

    as @husein mentioned.

    you can push the project to Github, create the docker.yml file, and then in coolify you can connect your repo and deploy using the docker file.

    the docker file will look something like:

    version: "3.9"
    services:
    app:
    image: php:8.2-fpm-alpine
    container_name: ci-php
    working_dir: /var/www
    volumes:
    - ./:/var/www
    environment:
    PHP_MEMORY_LIMIT: 256M
    command: sh -lc "
    apk add --no-cache $PHPIZE_DEPS libpng-dev libjpeg-turbo-dev libzip-dev icu-dev oniguruma-dev \
    && docker-php-ext-configure gd --with-jpeg \
    && docker-php-ext-install pdo pdo_mysql gd zip intl mbstring \
    && if [ -f composer.json ]; then \
    curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
    && composer install --no-dev --prefer-dist --no-interaction; \
    fi \
    && php-fpm -F
    "
    web:
    image: nginx:alpine
    container_name: ci-nginx
    depends_on:
    - app
    ports:
    - "8080:80"
    volumes:
    - ./:/var/www
    - ./deploy/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
    # For production, prefer a managed DB in Coolify (see Step 2).
    # This local DB is convenient for quick starts/testing.
    db:
    image: mysql:8.0
    container_name: ci-mysql
    environment:
    MYSQL_DATABASE: ${DB_NAME:-app}
    MYSQL_USER: ${DB_USER:-app}
    MYSQL_PASSWORD: ${DB_PASS:-secret}
    MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASS:-rootsecret}
    volumes:
    - dbdata:/var/lib/mysql
    command: --default-authentication-plugin=mysql_native_password
    volumes:
    dbdata: