summaryrefslogblamecommitdiffstats
path: root/utils/Docker/Latest/docker-compose.yml
blob: 2d5cf88642853638686cfdd0ad41c03246bc3bc7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                       


                                                                               


                                           

                                      


                                         

                              
                
                          


                                            
                                             






                                       


                                                                  










                                              



                                      



                      
version: "3"

services:

    www:
        container_name: www_1ka_latest
        restart: always
        build:
            context: .
            dockerfile: Dockerfile
        depends_on:
            - mysql
        ports:
            - "80:80"
        volumes:
            - ../../../:/var/www/html/
            - ./www/config/php-8.1.ini/php.ini:/usr/local/etc/php/php.ini
            ##- ./www/config/php-local.ini:/usr/local/etc/php/conf.d/local.ini
            ##- ./www/config/1ka.test:/etc/apache2/sites-available/1ka.test
            - ./www/log/:/var/log/apache2/
        networks:
            - default
        environment:
            - REALPATH_CACHE_SIZE=32M

    mysql:
        container_name: mysql_1ka_latest
        image: mariadb:10.3
        ##image: mysql:5.6.40
        ports: 
            - "3306:3306"
        volumes:
            - ./sql/database:/var/lib/mysql
            - ./sql/log:/var/log/mysql
            - ./sql/config:/etc/mysql/conf.d
        networks:
            - default
        environment:
            - MYSQL_USER=root
            - MYSQL_ROOT_PASSWORD=1234
            - MYSQL_PASSWORD=1234
            - MYSQL_DATABASE=1ka
            - MYSQL_ALLOW_EMPTY_PASSWORD=true
            - REALPATH_CACHE_SIZE=32M
        command: mysqld --sql_mode="" --innodb-flush-method=fsync
            
    phpmyadmin:
        container_name: phpmyadmin_1ka_latest
        image: phpmyadmin/phpmyadmin  
        depends_on:
            - mysql
        ports:
            - "8080:80"    
        environment:
            - PMA_HOST=mysql
            - PMA_PORT=3306
            - UPLOAD_LIMIT=300M
            - MAX_EXECUTION_TIME=1200
            - MEMORY_LIMIT=1024M
            - REALPATH_CACHE_SIZE=32M
        networks:
            - default