-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 815 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: '3'
services:
php:
# image: 'php:7.2-fpm'
build:
context: ./docker
dockerfile: php.Dockerfile
container_name: ${APP_NAME:?err}-php
volumes:
- './app:/var/www/html'
depends_on:
- mariadb
nginx:
image: nginx:latest
container_name: ${APP_NAME:?err}-nginx
ports:
- '80:80'
- '443:443'
links:
- 'php'
volumes:
- './app:/var/www/html'
- './config/nginx:/etc/nginx/conf.d'
mariadb:
image: mariadb:10.3.9
container_name: ${APP_NAME:?err}-mariadb
restart: 'on-failure'
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:?err}
volumes:
- ${PWD}