Created
August 31, 2022 05:43
-
-
Save faiyazalam/5299e311f0be944012d1ce5944781ba8 to your computer and use it in GitHub Desktop.
Pimcore 10.x Docker compose file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
redis: | |
image: redis:alpine | |
command: [ redis-server, --maxmemory 128mb, --maxmemory-policy volatile-lru, --save "" ] | |
db: | |
image: mariadb:10.7 | |
working_dir: /application | |
command: [mysqld, --character-set-server=utf8mb4, --collation-server=utf8mb4_unicode_ci, --innodb-file-per-table=1] | |
volumes: | |
- pimcore-database:/var/lib/mysql | |
environment: | |
- MYSQL_ROOT_PASSWORD=ROOT | |
- MYSQL_DATABASE=pimcore | |
- MYSQL_USER=pimcore | |
- MYSQL_PASSWORD=pimcore | |
nginx: | |
image: nginx:stable-alpine | |
ports: | |
- "82:80" | |
volumes: | |
- .:/var/www/html:ro | |
- ./.docker/nginx.conf:/etc/nginx/conf.d/default.conf:ro | |
depends_on: | |
- php-fpm | |
- php-fpm-debug | |
php-fpm: | |
user: '1000:1000' # set to your uid:gid | |
image: pimcore/pimcore:PHP8.1-fpm | |
environment: | |
COMPOSER_HOME: /var/www/html | |
depends_on: | |
- db | |
volumes: | |
- .:/var/www/html | |
- pimcore-tmp-storage:/tmp | |
php-fpm-debug: | |
user: '1000:1000' # set to your uid:gid | |
image: pimcore/pimcore:PHP8.1-fpm-debug | |
depends_on: | |
- db | |
volumes: | |
- .:/var/www/html | |
- pimcore-tmp-storage:/tmp | |
environment: | |
PHP_IDE_CONFIG: serverName=localhost | |
COMPOSER_HOME: /var/www/html | |
supervisord: | |
user: '1000:1000' # set to your uid:gid | |
image: pimcore/pimcore:PHP8.1-supervisord | |
depends_on: | |
- db | |
volumes: | |
- .:/var/www/html | |
- ./.docker/supervisord.conf:/etc/supervisor/conf.d/pimcore.conf:ro | |
adminer: | |
image: adminer | |
ports: | |
- 8080:8080 | |
volumes: | |
pimcore-database: | |
pimcore-tmp-storage: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment