diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2022-01-11 12:35:47 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2022-01-11 12:35:47 +0100 |
commit | 19985dbb8c0aa66dc4bf7905abc1148de909097d (patch) | |
tree | 2cd5a5d20d7e80fc2a51adf60d838d8a2c40999e /utils/Docker/docker-compose_latest.yml | |
download | 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.gz 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.bz2 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.lz 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.xz 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.zst 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.zip |
Diffstat (limited to 'utils/Docker/docker-compose_latest.yml')
-rw-r--r-- | utils/Docker/docker-compose_latest.yml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/utils/Docker/docker-compose_latest.yml b/utils/Docker/docker-compose_latest.yml new file mode 100644 index 0000000..eaffcdd --- /dev/null +++ b/utils/Docker/docker-compose_latest.yml @@ -0,0 +1,55 @@ +version: "3"
+
+services:
+
+ www:
+ container_name: www_1ka
+ restart: always
+ build:
+ context: .
+ dockerfile: Dockerfile_latest
+ 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
+ image: mysql:8.0.22
+ 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
+
+ phpmyadmin:
+ container_name: phpmyadmin_1ka
+ image: phpmyadmin/phpmyadmin
+ depends_on:
+ - mysql
+ ports:
+ - "8080:80"
+ environment:
+ - PMA_HOST=mysql
+ - PMA_PORT=3306
+ networks:
+ - default
+
+
\ No newline at end of file |