-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.docker-compose.yml
50 lines (50 loc) · 1.34 KB
/
local.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
services:
frontend:
build:
context: frontend
args:
# For the frontend local nginx config.
LOCALHOST: "true"
VUE_APP_BACKEND_URL: http://localhost:26728
ports:
- 8080:80
restart: always
nginx_backend:
build:
context: backend
dockerfile: nginx.Dockerfile
ports:
- 26728:80
php_backend:
build:
context: backend
dockerfile: php.Dockerfile
environment:
APP_ENV: local
APP_DEBUG: "true"
APP_URL: "http://localhost:26728"
LOG_LEVEL: debug
XML_FILES_FOLDER: "./corpus_coranicum_xml_files"
DB_CONNECTION: mysql
DB_HOST: db
DB_PORT: 3306
DB_DATABASE: corpuscoranicum
DB_USERNAME: user
DB_PASSWORD: password
volumes:
- ../corpus_coranicum_xml_files:/backend/corpus_coranicum_xml_files
db:
image: mysql:5.7.37
ports:
- 3005:3306
cap_add:
# https://stackoverflow.com/questions/55559386/how-to-fix-mbind-operation-not-permitted-in-mysql-error-log
- SYS_NICE
command: --max_allowed_packet=32505856 # Set max_allowed_packet to 256M (or any other value)
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: corpuscoranicum
MYSQL_USER: user
MYSQL_PASSWORD: password
volumes:
- ./dump.sql:/docker-entrypoint-initdb.d/dump.sql