mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
add docker containers with mysql server and PHP 8.0 and 8.1
(cherry picked from commit dd5e4f63ce)
This commit is contained in:
parent
010a863713
commit
3b33781e16
7 changed files with 87 additions and 0 deletions
1
docker/dev/.gitignore
vendored
Normal file
1
docker/dev/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
*/db_data
|
||||
4
docker/dev/_mariadb105/Dockerfile-db
Normal file
4
docker/dev/_mariadb105/Dockerfile-db
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
FROM mariadb:10.5
|
||||
|
||||
COPY my.cnf /etc/mysql/conf.d/
|
||||
4
docker/dev/_mariadb105/my.cnf
Normal file
4
docker/dev/_mariadb105/my.cnf
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[mysqld]
|
||||
collation-server = utf8mb4_unicode_ci
|
||||
character-set-server = utf8mb4
|
||||
innodb_log_file_size=10M
|
||||
1
docker/dev/mtt-php80-apache-mariadb105/.env
Normal file
1
docker/dev/mtt-php80-apache-mariadb105/.env
Normal file
|
|
@ -0,0 +1 @@
|
|||
PLATFORM_NAME=mtt-dev-php80-apache-mariadb105
|
||||
38
docker/dev/mtt-php80-apache-mariadb105/compose.yml
Normal file
38
docker/dev/mtt-php80-apache-mariadb105/compose.yml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
version: "3.9"
|
||||
|
||||
networks:
|
||||
network:
|
||||
name: "${PLATFORM_NAME}-network"
|
||||
|
||||
services:
|
||||
web:
|
||||
build:
|
||||
context: ../mtt-php80-apache/
|
||||
dockerfile: Dockerfile-web
|
||||
image: mytinytodo-dev:php8.0-apache
|
||||
container_name: ${PLATFORM_NAME}-web
|
||||
ports:
|
||||
- "8080:80"
|
||||
volumes:
|
||||
- ../../../src:/var/www/html
|
||||
depends_on:
|
||||
- db
|
||||
networks:
|
||||
- network
|
||||
|
||||
db:
|
||||
build:
|
||||
context: ../_mariadb105
|
||||
dockerfile: Dockerfile-db
|
||||
image: mytinytodo-dev:mariadb10.5
|
||||
container_name: ${PLATFORM_NAME}-db
|
||||
#restart: always
|
||||
environment:
|
||||
MARIADB_ROOT_PASSWORD: JustForDev
|
||||
MARIADB_USER: mtt
|
||||
MARIADB_PASSWORD: mtt
|
||||
MARIADB_DATABASE: mytinytodo
|
||||
volumes:
|
||||
- ../_mariadb105/db_data:/var/lib/mysql
|
||||
networks:
|
||||
- network
|
||||
1
docker/dev/mtt-php81-apache-mariadb105/.env
Normal file
1
docker/dev/mtt-php81-apache-mariadb105/.env
Normal file
|
|
@ -0,0 +1 @@
|
|||
PLATFORM_NAME=mtt-dev-php81-apache-mariadb105
|
||||
38
docker/dev/mtt-php81-apache-mariadb105/compose.yml
Normal file
38
docker/dev/mtt-php81-apache-mariadb105/compose.yml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
version: "3.9"
|
||||
|
||||
networks:
|
||||
network:
|
||||
name: "${PLATFORM_NAME}-network"
|
||||
|
||||
services:
|
||||
web:
|
||||
build:
|
||||
context: ../mtt-php81-apache/
|
||||
dockerfile: Dockerfile-web
|
||||
image: mytinytodo-dev:php8.1-apache
|
||||
container_name: ${PLATFORM_NAME}-web
|
||||
ports:
|
||||
- "8080:80"
|
||||
volumes:
|
||||
- ../../../src:/var/www/html
|
||||
depends_on:
|
||||
- db
|
||||
networks:
|
||||
- network
|
||||
|
||||
db:
|
||||
build:
|
||||
context: ../_mariadb105
|
||||
dockerfile: Dockerfile-db
|
||||
image: mytinytodo-dev:mariadb10.5
|
||||
container_name: ${PLATFORM_NAME}-db
|
||||
#restart: always
|
||||
environment:
|
||||
MARIADB_ROOT_PASSWORD: JustForDev
|
||||
MARIADB_USER: mtt
|
||||
MARIADB_PASSWORD: mtt
|
||||
MARIADB_DATABASE: mytinytodo
|
||||
volumes:
|
||||
- ../_mariadb105/db_data:/var/lib/mysql
|
||||
networks:
|
||||
- network
|
||||
Loading…
Reference in a new issue