-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 1.21 KB
/
docker-compose.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: "3"
services:
php:
build:
context: ./php
dockerfile: Dockerfile
container_name: ${APP_NAME}-php
volumes:
- ${APP_PATH}/:/var/www/html
- ./php/conf.d/:/usr/local/etc/php:ro
depends_on:
- mysql
nginx:
image: nginx:1.18-alpine
container_name: ${APP_NAME}-nginx
ports:
- "80:80"
#- "443:443"
volumes:
- ${APP_PATH}/:/var/www/html:ro
- ./nginx/conf.d:/etc/nginx/conf.d:ro
depends_on:
- php
mysql:
image: mysql:8.0
container_name: ${APP_NAME}-mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
- ./data/mysql:/var/lib/mysql
- type: bind
source: ./mysql/my.cnf
target: /etc/mysql/conf.d/my.cnf
user: ${UID:-0}:${GID:-0}
phpmyadmin:
image: phpmyadmin
container_name: ${APP_NAME}-phpmyadmin
environment:
PMA_HOST: mysql
PMA_USER: root
PMA_PASSWORD: root
ports:
- 8080:80
depends_on:
- mysql