-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-local.yml
65 lines (55 loc) · 1.11 KB
/
docker-compose-local.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: "3.8"
services:
web:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
depends_on:
- php
- mysqlserver
links:
- php
restart: always
volumes:
- ./conf/app.conf:/etc/nginx/conf.d/app.conf
- ./app:/var/www/html
php:
image: php:7.4-fpm
ports:
- "9000:9000"
restart: always
volumes:
- ./app:/var/www/html
- ./conf/php.ini:/usr/local/etc/php/php.ini
links:
- mysqlserver
mysqlserver:
#build: mysql
image: mysql:8.0
command: [ "--default-authentication-plugin=mysql_native_password" ]
ports:
- "3306:3306"
restart: always
environment:
MYSQL_ROOT_PASSWORD: "${PASSWORD_ROOT}"
MYSQL_DATABASE: "${DATABASE}"
MYSQL_USER: "${DBUSER}"
MYSQL_PASSWORD: "${DBPASSWORD}"
volumes:
- ./db_dados:/var/lib/mysql
phpmyadmin:
image: phpmyadmin:apache
restart: always
ports:
- "8082:80"
environment:
- PMA_ARBITRARY=1
depends_on:
- mysqlserver
links:
- mysqlserver
volumes:
app:
conf:
db_dados: