summaryrefslogtreecommitdiffstats
path: root/utils/Docker/Latest/docker-compose.yml
blob: 986104a9f2a6158ffbe406e8c2101da35a31626c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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-7.4.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

    mysql:
        container_name: mysql_1ka_latest
        image: mysql:5.7
        ports: 
            - "6032:3306"
        volumes:
            - ./sql/database:/var/lib/mysql
            - ./sql/log:/var/log/mysql
            - ./sql/config:/etc/mysql
        networks:
            - default
        environment:
            - MYSQL_USER=root
            - MYSQL_ROOT_PASSWORD=1234
            - MYSQL_PASSWORD=1234
            - MYSQL_DATABASE=1ka
            
    phpmyadmin:
        container_name: phpmyadmin_1ka_latest
        image: phpmyadmin/phpmyadmin  
        depends_on:
            - mysql
        ports:
            - "8080:80"    
        environment:
            - PMA_HOST=mysql
            - PMA_PORT=3306
        networks:
            - default