-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
105 lines (97 loc) · 2.97 KB
/
docker-compose.yaml
File metadata and controls
105 lines (97 loc) · 2.97 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
100
101
102
103
104
105
name: ${DOCKER_PROJECT_NAME:-data-definitions}
services:
redis:
image: redis:alpine
command: redis-server --requirepass password
volumes:
- redis:/data
db:
image: mysql:8.4
working_dir: /application
command: [ mysqld, --character-set-server=utf8mb4, --collation-server=utf8mb4_general_ci ]
environment:
- MYSQL_ROOT_PASSWORD=ROOT
- MYSQL_DATABASE=pimcore
- MYSQL_USER=pimcore
- MYSQL_PASSWORD=pimcore
volumes:
- database:/var/lib/mysql
nginx:
image: nginx:stable-alpine
volumes:
- .:/var/www/html:ro
- ./.docker/nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- php
ports:
- "80:80"
php:
image: ghcr.io/cors-gmbh/pimcore-docker/php-fpm:8.3-alpine3.21-7.1.0
depends_on:
- db
- redis
volumes:
- .:/var/www/html:cached
environment:
PIMCORE_DB_DSN: "mysql://pimcore:pimcore@db:3306/pimcore"
PIMCORE_INSTALL_ADMIN_USERNAME: "admin"
PIMCORE_INSTALL_ADMIN_PASSWORD: "admin"
PIMCORE_INSTALL_MYSQL_HOST_SOCKET: "db"
PIMCORE_INSTALL_MYSQL_USERNAME: "pimcore"
PIMCORE_INSTALL_MYSQL_PASSWORD: "pimcore"
PIMCORE_INSTALL_MYSQL_DATABASE: "pimcore"
PIMCORE_INSTALL_MYSQL_PORT: "3306"
php-debug:
image: ghcr.io/cors-gmbh/pimcore-docker/php-fpm-debug:8.3-alpine3.21-7.1.0
depends_on:
- db
- redis
volumes:
- .:/var/www/html:cached
environment:
PHP_IDE_CONFIG: serverName=localhost
XDEBUG_MODE: debug
XDEBUG_CONFIG: client_host=host.docker.internal
PIMCORE_DB_DSN: "mysql://pimcore:pimcore@db:3306/pimcore"
PIMCORE_INSTALL_ADMIN_USERNAME: "admin"
PIMCORE_INSTALL_ADMIN_PASSWORD: "admin"
PIMCORE_INSTALL_MYSQL_HOST_SOCKET: "db"
PIMCORE_INSTALL_MYSQL_USERNAME: "pimcore"
PIMCORE_INSTALL_MYSQL_PASSWORD: "pimcore"
PIMCORE_INSTALL_MYSQL_DATABASE: "pimcore"
PIMCORE_INSTALL_MYSQL_PORT: "3306"
extra_hosts:
- "host.docker.internal:host-gateway"
mercure:
image: dunglas/mercure
restart: unless-stopped
environment:
SERVER_NAME: ':80'
MERCURE_PUBLISHER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!'
MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!'
opensearch:
image: opensearchproject/opensearch:2.13.0
environment:
- discovery.type=single-node
- plugins.security.disabled=true
- DISABLE_INSTALL_DEMO_CONFIG=true
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=admin
- cluster.routing.allocation.disk.threshold_enabled=false
- cluster.routing.allocation.disk.watermark.flood_stage=100%
- cluster.routing.allocation.disk.watermark.low=100%
- cluster.routing.allocation.disk.watermark.high=100%
volumes:
- opensearch:/usr/share/opensearch/data:rw
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
database:
redis:
opensearch: