-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 846 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (32 loc) · 846 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
34
version: '3.7'
services:
php:
# image: 'php:7.2-fpm'
build:
context: ./docker
dockerfile: php.Dockerfile
container_name: ${APP_NAME:?err}-php
volumes:
- './app:/var/www/html'
nginx:
image: nginx:latest
container_name: ${APP_NAME:?err}-nginx
ports:
- '${APP_PORT:-80}:80'
links:
- 'php'
volumes:
- './app:/var/www/html'
- './config/nginx:/etc/nginx/conf.d'
# mariadb:
# image: mariadb:latest
# container_name: ${APP_NAME:?err}-mariadb
# restart: 'on-failure'
# environment:
# MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:?err}
# ports:
# - '3301:3306'
# volumes:
# - ${PWD}
volumes:
dbdata: