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

Feature Request: Local Volumes #7

Open
shmuelios opened this issue Sep 27, 2018 · 1 comment
Open

Feature Request: Local Volumes #7

shmuelios opened this issue Sep 27, 2018 · 1 comment

Comments

@shmuelios
Copy link

This is great but how would I use and have a Contao synced locally.
I have tried mapping Volumes but can't figure out how they are bound and realise contao setup might need copying from the container.

I want this so I could work on it via an IDE and copy those changes to a live site?

Can database be accessed locally also?

If this is not the place to ask sorry!

@DanielSchwiperich
Copy link
Member

Hi @shmuelios ,

sorry for the late response. Missed that.
You can use this setup for developing extensions. See https://github.com/ctsmedia/docker-contao#develop-contao-extensions--bundles
That sections also explains how to mount local volumes.

For full projects you might want to have a look at:
https://github.com/ctsmedia/docker-baseimage-web

Thats what we use for developing contao sites with themes etc.
You can also access the db container. Just add 2 lines to the db container config in the docker-compose.yml

db:
    image: mysql:5.7
    environment:
      MYSQL_ROOT_PASSWORD: *password
      MYSQL_DATABASE: *project
      MYSQL_USER: *project
      MYSQL_PASSWORD: *project
    ports:
        - "3306:3306"

this will make the database accessible on port 3306 on localhost

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