-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use this container #27
Comments
Probably in a windows context you probably have to expose the ports in the docker-compose file. This setup assumes you can access all the networks docker creates, since that is not the case in Windows there might be a need to apply some tweaks here and there. I think you might be able to access it from localhost on windows if you use the following docker-compose.yml: version: '3'
services:
redis:
image: redis:alpine
environment:
- DOMAIN_NAME=redis.${BASEHOST:-pimcore.docker}
mysql:
image: docker.io/library/mysql:${MYSQLVERSION:-8}
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-toor}
- DOMAIN_NAME=mysql.${BASEHOST:-pimcore.docker}
command: --innodb-doublewrite=0 --lower-case-table-names=1 --innodb-page-size=32K
mailcatcher:
image: mailhog/mailhog
environment:
- DOMAIN_NAME=mailcatcher.${BASEHOST:-pimcore.docker}
application:
image: dockerwest/php-pimcore:${PHPVERSION:-8.0}
environment:
- C_UID=${C_UID:-1000}
- C_GID=${C_GID:-1000}
- DEVELOPMENT=${DEVELOPMENT:-1}
volumes:
- ${APPLICATION:-../pimcore}:/phpapp
links:
- mysql
- redis
- mailcatcher
nginx:
image: dockerwest/nginx-pimcore${PIMCOREVERSION:-5}:${NGINXVERSION:-stable}
ports:
- "80:80"
environment:
- VIRTUAL_HOST=${BASEHOST:-pimcore.docker},${EXTRAHOSTS}
volumes:
- ${APPLICATION:-../pimcore}:/phpapp
links:
- application |
Note the added "ports" part for the nginx service in the previous comment |
Sorry, I am new to Docker.
I am using Docker Desktop on windows, linux context.
Compose up works fine using the defaults.
I can't figure out how access Pimcore. I tried http://pimcore.docker, localhost:9000, localhost:80.
Any advise?
Thanks!
The text was updated successfully, but these errors were encountered: