From 6ba008a0739d142dab6dd182c22dc61947abfeb8 Mon Sep 17 00:00:00 2001 From: Nam Tran Date: Thu, 16 Jan 2020 07:06:52 -0600 Subject: [PATCH] site001 --- sites/001/docker-compose.yml | 28 +++++++++++++++++----------- sites/001/public/index.php | 1 + 2 files changed, 18 insertions(+), 11 deletions(-) create mode 100644 sites/001/public/index.php diff --git a/sites/001/docker-compose.yml b/sites/001/docker-compose.yml index 12f96a3..6459209 100644 --- a/sites/001/docker-compose.yml +++ b/sites/001/docker-compose.yml @@ -1,32 +1,38 @@ -version: '3' +version: "3" services: php-apache: image: php:7.4-apache ports: - "127.0.0.1:8090:80" volumes: - - docs:/var/www/html + - public:/var/www/html links: - - "mariadb" + - "db" - mariadb: - image: mariadb:10.1 + dbadmin: + image: adminer + restart: always + ports: + - "127.0.0.1:8091:8080" + + db: + image: mariadb:10.4.11 volumes: - db:/var/lib/mysql environment: TZ: "America/Chicago" MYSQL_ALLOW_EMPTY_PASSWORD: "no" MYSQL_ROOT_PASSWORD: "8pwFrTUks-" - MYSQL_USER: 'user0' - MYSQL_PASSWORD: 'TCfQwfAJP!4*&cnV' - MYSQL_DATABASE: 'prod' + MYSQL_USER: "user0" + MYSQL_PASSWORD: "TCfQwfAJP!4*&cnV" + MYSQL_DATABASE: "prod" + command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci'] volumes: - docs: # /Users/ + public: driver: local driver_opts: type: nfs o: addr=host.docker.internal,rw,nolock,hard,nointr,nfsvers=3 - device: ":/Users/nam/work/learning/mmo/sites/001/docs" - + device: ":/Users/nam/work/learning/mmo/sites/001/public" db: diff --git a/sites/001/public/index.php b/sites/001/public/index.php new file mode 100644 index 0000000..147cebc --- /dev/null +++ b/sites/001/public/index.php @@ -0,0 +1 @@ +