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: services:
php-apache: php-apache:
image: php:7.4-apache image: php:7.4-apache
ports: ports:
- "127.0.0.1:8090:80" - "127.0.0.1:8090:80"
volumes: volumes:
- docs:/var/www/html - public:/var/www/html
links: links:
- "mariadb" - "db"
mariadb: dbadmin:
image: mariadb:10.1 image: adminer
restart: always
ports:
- "127.0.0.1:8091:8080"
db:
image: mariadb:10.4.11
volumes: volumes:
- db:/var/lib/mysql - db:/var/lib/mysql
environment: environment:
TZ: "America/Chicago" TZ: "America/Chicago"
MYSQL_ALLOW_EMPTY_PASSWORD: "no" MYSQL_ALLOW_EMPTY_PASSWORD: "no"
MYSQL_ROOT_PASSWORD: "8pwFrTUks-" MYSQL_ROOT_PASSWORD: "8pwFrTUks-"
MYSQL_USER: 'user0' MYSQL_USER: "user0"
MYSQL_PASSWORD: 'TCfQwfAJP!4*&cnV' MYSQL_PASSWORD: "TCfQwfAJP!4*&cnV"
MYSQL_DATABASE: 'prod' MYSQL_DATABASE: "prod"
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
volumes: volumes:
docs: # /Users/<USER> public:
driver: local driver: local
driver_opts: driver_opts:
type: nfs type: nfs
o: addr=host.docker.internal,rw,nolock,hard,nointr,nfsvers=3 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: db:

View File

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