Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mingfang/docker-pimcore
Run Pimcore Inside Docker
https://github.com/mingfang/docker-pimcore
Last synced: about 5 hours ago
JSON representation
Run Pimcore Inside Docker
- Host: GitHub
- URL: https://github.com/mingfang/docker-pimcore
- Owner: mingfang
- Created: 2018-08-05T14:29:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-20T15:08:35.000Z (almost 6 years ago)
- Last Synced: 2024-11-06T15:19:03.659Z (about 2 months ago)
- Language: Dockerfile
- Size: 37.1 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-pimcore
Run Pimcore Inside Dockersample deploy
```
services:
- name: pimcore
ports:
- {name: http, port: 80}
annotations:
nginx:
- http:
- server: pimcore.*
paths:
- path: /
stateful: true
pod:
replicas: 1
containers:
- name: pimcore
image: registry.rebelsoft.com/pimcore
env:
- {name: PIMCORE_INSTALL_ADMIN_USERNAME, value: "admin"}
- {name: PIMCORE_INSTALL_ADMIN_PASSWORD, value: "admin"}
- {name: PIMCORE_INSTALL_MYSQL_HOST_SOCKET, value: "pimcore-db"}
- {name: PIMCORE_INSTALL_MYSQL_USERNAME, value: "pimcore"}
- {name: PIMCORE_INSTALL_MYSQL_PASSWORD, value: "pimcore"}
- {name: PIMCORE_INSTALL_MYSQL_DATABASE, value: "pimcore"}
- {name: PIMCORE_INSTALL_MYSQL_PORT, value: "3306"}
- {name: POD_NAME, valueFrom: {fieldRef: {fieldPath: metadata.name}}}
lifecycle:
postStart:
exec:
command:
- bash
- -ce
- |
until curl -s -o /dev/null localhost/; do echo "Waiting for Nginx..."; sleep 10; done;
if [ -e /var/www/pimcore/var/config/system.php ]; then
./bin/console pimcore:deployment:classes-rebuild
echo "/var/www/pimcore/var/config/system.php was found...skipping installation"
exit
fi
cd /var/www/pimcore
./vendor/bin/pimcore-install --no-interaction
chown -R www-data:www-data /var/www
volumeMounts:
- {name: data, mountPath: /var/www/pimcore/var, subPath: pimcore/data/var}
- {name: data, mountPath: /var/www/pimcore/web/var, subPath: pimcore/data/web/var}
volumes:
- {name: data, persistentVolumeClaim: {claimName: cluster-data}}```