This commit is contained in:
2020-01-16 07:06:52 -06:00
parent 43e6315f53
commit 6ba008a073
2 changed files with 18 additions and 11 deletions

View File

@@ -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/<USER>
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:

View File

@@ -0,0 +1 @@
<?php phpinfo(); ?>