juliusknorr / nextcloud-docker-dev

Nextcloud development environment using docker-compose
GNU Affero General Public License v3.0
141 stars 74 forks source link

Podman support #213

Open weeman1337 opened 1 year ago

weeman1337 commented 1 year ago

It would be great if nextcloud-docker-dev supports Podman. I can do some research on this.

Workaround:

:warning: May vary depending on your system

Add 127.0.0.1 nextcloud.local to /etc/hosts.

Permit use of port 80:

sudo sysctl net.ipv4.ip_unprivileged_port_start=80

Remove this from the services in use

    extra_hosts:
      - host.docker.internal:host-gateway

(issue)

Remove/disable mount of additional.config.php from the compose file:

      # - ./data/additional.config.php:/var/www/html/config/additional.config.php:ro

Share port 80 from the nextcloud service

    ports:
      - "80:80"

Start nextcloud and the database

podman compose up database-mysql nextcloud

The dev environment should be available under http://nextcloud.local/

juliusknorr commented 1 year ago

For sure that would be nice. First one would probably need some variable in the .env file, the second one I'm not sure, but https://github.com/containers/podman/issues/8466 looks like it should already be there.

weeman1337 commented 1 year ago

For sure that would be nice. First one would probably need some variable in the .env file,

Good idea. I will have a look soon, if I set up my dev environment again.

the second one I'm not sure, but https://github.com/containers/podman/issues/8466 looks like it should already be there.

They won't add it: https://github.com/containers/podman/issues/8466#issuecomment-864079821

weeman1337 commented 7 months ago

Looks like that https://github.com/nginx-proxy/nginx-proxy is Podman incompatible.

You can still use nextcloud-docker-dev if you disable nginx-proxy and proxy it by yourself.