Skip to content
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

Open
jcnicke opened this issue Aug 11, 2022 · 2 comments
Open

How to use this container #27

jcnicke opened this issue Aug 11, 2022 · 2 comments

Comments

@jcnicke
Copy link

jcnicke commented Aug 11, 2022

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!

@BlackIkeEagle
Copy link
Member

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

@BlackIkeEagle
Copy link
Member

Note the added "ports" part for the nginx service in the previous comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants