forked from thorsten/phpMyFAQ
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
99 lines (97 loc) · 2.3 KB
/
Copy pathdocker-compose.yml
File metadata and controls
99 lines (97 loc) · 2.3 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: '3'
# Use this file for development
services:
mariadb:
image: mariadb:10.2.14
restart: always
environment:
- MYSQL_ROOT_PASSWORD=iop
- MYSQL_DATABASE=phpmyfaq
- MYSQL_USER=phpmyfaq
- MYSQL_PASSWORD=phpmyfaq
- MYSQL_ROOT_HOST=%
ports:
- '3306:3306'
volumes:
- ./volumes/mariadb:/var/lib/mysql
postgres:
image: postgres:10.1
restart: always
environment:
- POSTGRES_DB=phpmyfaq
- POSTGRES_USER=phpmyfaq
- POSTGRES_PASSWORD=phpmyfaq
ports:
- 5432:5432
volumes:
- ./volumes/postgres:/var/lib/postgresql/data
phpmyfaq:
build: .
restart: always
stdin_open: true
environment:
- PMF_DB_HOST=db
- PMF_DB_NAME=phpmyfaq
- PMF_DB_USER=phpmyfaq
- PMF_DB_PASS=phpmyfaq
- PMF_DISABLE_HTACCESS=""
- PMF_TIMEZONE="Europe/Berlin"
- PMF_ENABLE_UPLOADS="On"
- PMF_MEMORY_LIMIT="128M"
- PHP_LOG_ERRORS="On"
- PHP_ERROR_REPORTING="E_ALL & E_DEPRECATED & E_STRICT" # Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
links:
- mariadb:db
- elasticsearch
ports:
- '8080:80'
volumes:
- ./phpmyfaq:/var/www/html
depends_on:
- yarn
yarn:
image: node:10
restart: 'no'
command: sh -c "npm install node-sass -g --unsafe-perm && yarn install && yarn build"
working_dir: /app
stdin_open: true
tty: true
volumes:
- .:/app
depends_on:
- composer
composer:
image: composer:latest
restart: 'no'
command: composer install --verbose --ignore-platform-reqs
stdin_open: true
tty: true
volumes:
- .:/app
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
stdin_open: true
links:
- mariadb:db
ports:
- '8000:80'
volumes:
- ./volumes/sessions:/sessions
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.8.7
container_name: elasticsearch-v6
restart: always
environment:
- cluster.name=phpmyfaq-cluster
- bootstrap.memory_lock=true
- 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
- xpack.security.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./volumes/esdata:/usr/share/elasticsearch/data
ports:
- 9200:9200