first commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
version: '3'
|
||||
services:
|
||||
php:
|
||||
# image: 'php:7.2-fpm'
|
||||
build:
|
||||
context: ./docker
|
||||
dockerfile: php.Dockerfile
|
||||
container_name: ${APP_NAME:?err}-php
|
||||
volumes:
|
||||
- './data/php:/data'
|
||||
- '/home/www:/var/www'
|
||||
- './config/php/php.ini:/usr/local/etc/php/php.ini'
|
||||
- './config/php/www.conf:/usr/local/etc/php-fpm.d/www.conf'
|
||||
depends_on:
|
||||
- mariadb
|
||||
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
container_name: ${APP_NAME:?err}-nginx
|
||||
ports:
|
||||
- '8080:80'
|
||||
- '8443:443'
|
||||
links:
|
||||
- 'php'
|
||||
volumes:
|
||||
- './data/nginx:/data'
|
||||
- '/home/www:/var/www'
|
||||
- './config/nginx:/etc/nginx/conf.d'
|
||||
- './log/nginx:/var/log/nginx'
|
||||
|
||||
mariadb:
|
||||
image: mariadb:10.3.9
|
||||
container_name: ${APP_NAME:?err}-mariadb
|
||||
restart: 'on-failure'
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:?err}
|
||||
volumes:
|
||||
- './data/mariadb:/var/lib/mysql'
|
||||
ports:
|
||||
- '8306:3306'
|
||||
Reference in New Issue
Block a user