-
-
Notifications
You must be signed in to change notification settings - Fork 256
/
docker-compose.yml
143 lines (132 loc) · 3.23 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
version: '3'
# Use this file for development only
services:
mariadb:
image: mariadb:latest
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:latest
restart: always
environment:
- POSTGRES_DB=phpmyfaq
- POSTGRES_USER=phpmyfaq
- POSTGRES_PASSWORD=phpmyfaq
ports:
- '5432:5432'
volumes:
- ./volumes/postgres:/var/lib/postgresql/data
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
ports:
- 1433:1433
environment:
SA_PASSWORD: 'phpMyFAQ-4.1'
ACCEPT_EULA: 'Y'
phpmyfaq:
build: .
container_name: phpmyfaq-41
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="2048M" # only for development
- PHP_LOG_ERRORS="On"
- PHP_ERROR_REPORTING="E_ALL & E_DEPRECATED" # Production Value: E_ALL & ~E_DEPRECATED
links:
- mariadb:db
- postgres
- elasticsearch
ports:
- '8080:80'
- '443:443'
volumes:
- ./phpmyfaq:/var/www/html
depends_on:
- pnpm
pnpm:
image: node:22-alpine
restart: 'no'
command: sh -c "corepack enable && corepack prepare pnpm@latest --activate && pnpm install && pnpm 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
environment:
UPLOAD_LIMIT: 100M
links:
- mariadb:db
ports:
- '8000:80'
volumes:
- ./volumes/sessions:/sessions
pgadmin:
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: postgres
PGADMIN_CONFIG_SERVER_MODE: 'False'
volumes:
- ./volumes/pgadmin:/root/.pgadmin
ports:
- '8008:80'
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.0
container_name: phpmyfaq-41_elasticsearch-v8
restart: always
environment:
- cluster.name=phpmyfaq-cluster
- discovery.type=single-node
- bootstrap.memory_lock=true
- 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
- xpack.security.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
user: elasticsearch
command:
[
'sh',
'-c',
'./bin/elasticsearch-plugin list | grep -q analysis-icu || ./bin/elasticsearch-plugin install analysis-icu && ./bin/elasticsearch',
]
volumes:
- ./volumes/esdata:/usr/share/elasticsearch/data
ports:
- '9200:9200'
- '9300:9300'