Skip to content

Commit f57fee5

Browse files
youwe-petervanderwalr-vanstraaten
authored andcommitted
chore: add Pimcore template
1 parent 8fd9156 commit f57fee5

File tree

3 files changed

+109
-0
lines changed

3 files changed

+109
-0
lines changed

templates/pimcore-php8.0/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PROJECT_DOCUMENT_ROOT=public

templates/pimcore-php8.0/.env.dev

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Port configuration
2+
MAILHOG_PORT=8025
3+
WEB_PORT_HTTP=80
4+
WEB_PORT_HTTPS=443
5+
6+
# Database
7+
DB_HOST=db
8+
DB_USER=pimcore
9+
DB_PASS=pimcore
10+
DB_NAME=pimcore
11+
MYSQL_ROOT_PASSWORD=pimcore
12+
MYSQL_PORT=3306
13+
14+
# Elasticsearch
15+
ELASTICSEARCH_HOST=elasticsearch
16+
ELASTICSEARCH_PORT_REST=9200
17+
ELASTICSEARCH_PORT_NODE_COMM=9300
18+
19+
# xDebug configuration
20+
XDEBUG_CONFIG="remote_host=${HOST_IP} coverage_enable=0 remote_enable=1 remote_connect_back=1"
21+
COMPOSER_ALLOW_XDEBUG=0
22+
23+
ES_JAVA_OPTS="-Xms512m -Xmx512m"
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
version: '3.4'
2+
x-custom:
3+
type: pimcore-php8.0
4+
version: 1.0.0
5+
php-environment: &php-env-vars
6+
# Database settings
7+
DB_HOST: ~
8+
DB_USER: ~
9+
DB_PASS: ~
10+
DB_NAME: ~
11+
12+
services:
13+
php:
14+
image: youwe-pimcore-php:8.0-apache
15+
working_dir: "${PWD}"
16+
volumes:
17+
- "${PWD}:${PWD}"
18+
ports:
19+
- "${WEB_PORT_HTTP}:80"
20+
- "${WEB_PORT_HTTPS}:443"
21+
environment:
22+
<<: *php-env-vars
23+
WWW_DATA_UID: "${CUID}"
24+
WWW_DATA_GID: "${CGID}"
25+
DOCUMENT_ROOT: "${PWD}/${PROJECT_DOCUMENT_ROOT}"
26+
depends_on: [db]
27+
28+
console:
29+
image: youwe-pimcore-console:8.0
30+
user: "${CUID}:${CGID}"
31+
working_dir: "${PWD}"
32+
volumes:
33+
- "${HOME}:${CHOME}"
34+
- "${PWD}:${PWD}"
35+
- "${SSH_AUTH_SOCK}:${SSH_AUTH_SOCK}"
36+
- /etc/group:/etc/group:ro
37+
- /etc/passwd:/etc/passwd:ro
38+
- /etc/shadow:/etc/shadow:ro
39+
environment:
40+
<<: *php-env-vars
41+
depends_on: [db]
42+
43+
db:
44+
image: mysql:8.0.27
45+
command:
46+
[
47+
mysqld,
48+
--character-set-server=utf8mb4,
49+
--collation-server=utf8mb4_unicode_520_ci,
50+
--innodb-file-per-table=1,
51+
]
52+
volumes:
53+
- db:/var/lib/mysql
54+
environment:
55+
MYSQL_USER: "${DB_USER}"
56+
MYSQL_PASSWORD: "${DB_PASS}"
57+
MYSQL_DATABASE: "${DB_NAME}"
58+
ports:
59+
- "${MYSQL_PORT}:3306"
60+
61+
redis-alpine:
62+
image: redis:5.0.7
63+
volumes:
64+
- redis-data:/data
65+
66+
elasticsearch:
67+
image: elasticsearch:7.16.1
68+
volumes:
69+
- elasticsearch:/usr/share/elasticsearch/data
70+
environment:
71+
- discovery.type=single-node
72+
- "ES_JAVA_OPTS=${ES_JAVA_OPTS}"
73+
ports:
74+
- ${ELASTICSEARCH_PORT_REST}:9200
75+
- ${ELASTICSEARCH_PORT_NODE_COMM}:9300
76+
77+
mail:
78+
image: mailhog/mailhog
79+
ports:
80+
- ${MAILHOG_PORT}:8025
81+
82+
volumes:
83+
db:
84+
elasticsearch:
85+
redis-data:

0 commit comments

Comments
 (0)