Search
 
SCRIPT & CODE EXAMPLE
 

PHP

docker commant

version: '3'
services:
  web:
    image: nguyenmanhluu/yii1:1.0
    container_name: dockeryiidisc
    ports:
      - "8082:80"
    build: 
      context: ..
      dockerfile: Dockerfile
      target: dev     
    volumes:
      - ./:/var/www/html       
    command: /bin/sh -c "service apache2 start && while sleep 1000; do :; done"
   
  db:
    container_name: dockeryiimysql
    image: mysql:latest
    volumes:
      - dockeryiimysql:/var/lib/mysql
    ports:
      - "3306:3306"
    environment:
      MYSQL_ALLOW_EMPTY_PASSWORD: 'true'
      MYSQL_DATABASE: sdi      

  phpmyadmin:  
    container_name: dockeryiipma
    image: phpmyadmin:latest
    environment:
      UPLOAD_LIMIT: 300M
      PMA_ARBITRARY: 1
      APACHE_HTTP_PORT_NUMBER: 8080
    ports:
      - 8080:8080
    command: /bin/bash -c "sed -i "s/80/$$APACHE_HTTP_PORT_NUMBER/g" /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf && /docker-entrypoint.sh apache2-foreground"

volumes:
  dockeryiimysql: {}
Comment

PREVIOUS NEXT
Code Example
Php :: php browser detection script 
Php :: wc php get shipping address street 
Php :: php zoom api start_time issue 
Php :: how to count number of rows in sql using php 
Php :: How to create custom php.ini file in CPanel? 
Php :: php remove new line character from string 
Php :: itop cron.php 
Php :: PHP how to skip file upload if file already exist 
Php :: WooCommerce Catalog Mode snippets 
Php :: acf blocks register block with enqueue script 
Php :: Grab files matching particular file types in a directory 
Php :: display product page title in field cf7 
Php :: fixing http error laravel on ubuntu 
Php :: show real number and not exponential form php 
Php :: get base class name laravel 
Php :: laravel convert array to string 
Php :: progressive variable php 
Php :: invalid menu item in wordpress 
Php :: PHP DocBlocker current date 
Php :: I wanna add new tab clientarea in whmcs 
Php :: laravel 8 app with more than one database 
Php :: laravel 8 ui auth 
Php :: RequestCriteria laravel 
Php :: php base64 encode utf8 
Php :: laravel model where set fields laravel 
Php :: if condition in laravel blade in select option 
Php :: PHP stripslashes — Un-quotes a quoted string 
Php :: Customizing The Validation Attributes 
Php :: php code obfuscator 
Php :: php api call with headers 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =