Skip to content
/ phalcon Public

PHP docker images extended by Phalcon and nginx tag

License

Notifications You must be signed in to change notification settings

amq/phalcon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 

Repository files navigation

What's included

PHP modules:

  • Phalcon
  • OPcache
  • PDO_MYSQL
  • MySQLi
  • SOAP
  • Redis
  • Xdebug
  • Zip

Tools:

  • Phalcon CLI
  • Composer
  • Git

Usage examples

Nginx

# docker-compose.yml

  phalcon:
    image: amqamq/phalcon:7.2-nginx-alpine
    restart: always
    ports:
      - "8080:80"
    volumes:
      - ./project:/app

Nginx + FPM

# docker-compose.yml

  nginx:
    image: nginx:mainline
    restart: always
    ports:
      - "8080:80"
    volumes:
      - ./docker/nginx/conf.d:/etc/nginx/conf.d
      - ./project:/app

  phalcon:
    image: amqamq/phalcon:7.2-fpm-alpine
    restart: always
    volumes:
      - ./phalcon:/app

# ./docker/nginx/conf.d/default.conf

    server {
        listen 80;
        server_name _;
        root /app/public;

        index index.php index.html;

        location / {
            try_files $uri /index.php$is_args$args;
        }

        location ~ \.php$ {
            try_files $uri =404;
            include fastcgi_params;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_pass phalcon:9000;
        }
    }

Phalcon Developer Tools

docker run -it --rm -v $(pwd)/project:/app amqamq/phalcon phalcon

Composer

docker run -it --rm -v $(pwd)/project:/app amqamq/phalcon composer

Supported tags

About

PHP docker images extended by Phalcon and nginx tag

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published