-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yaml
50 lines (43 loc) · 1.29 KB
/
compose.yaml
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
# version: '3.9'
name: proyecto
services:
php-fpm:
build: ./php-fpm
volumes:
- ./helpdesk-core-php:/var/www/html
restart:
always
www:
image: nginx:1.25.4-alpine
ports:
- "80:80"
volumes:
- ./helpdesk-core-php:/var/www/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php-fpm
- db
restart:
always
db:
image: mariadb:10.6
# ports:
# - "3306:3306"
volumes:
- ./helpdesk-core-php/database:/docker-entrypoint-initdb.d # Se ejecutarán todos los dumps.sql presentes en ese directorio del contenedor
- mysql_data:/var/lib/mysql # $ sudo ls -la /var/lib/docker/volumes/proyecto_mysql_data/_data
command: --default-authentication-plugin=caching_sha2_password # Se añade ante 'mysqli_connect(): The server requested authentication method unknown to the client [caching_sha2_password]' --- *=mysql_native_password
env_file: mysql.properties
restart:
always
# phpmyadmin:
# image: phpmyadmin:5-apache
# ports:
# - "8080:80"
# env_file:
# - phpmyadmin.properties
# depends_on:
# - db
volumes:
mysql_data:
# /var/lib/docker/volumes/proyecto_mysql_data/