Skip to content

Instantly share code, notes, and snippets.

@bschulz87
Last active September 14, 2021 12:18
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save bschulz87/fc1f6968ea97b1c034bfa4811b35e17d to your computer and use it in GitHub Desktop.
Save bschulz87/fc1f6968ea97b1c034bfa4811b35e17d to your computer and use it in GitHub Desktop.
Pydio Cells Docker Compose
PYDIO_URL=my.pydio.cells
MYSQL_ROOT_PASSWORD=rootPassword
MYSQL_DATABASE=pydio
MYSQL_USER=cells
MYSQL_PASSWORD=password
  1. setup a working traefik service
  2. create the web network
  3. set A or CNAME record in DNS for ${PYDIO_URL}

When you go through the installation process, for the database replace “localhost” with db. The address for php is “php-fpm:9000”.

Once you finish the installation, you must go into Settings -> Configs Backends and replace “http://cells:8080” with an external URL (i.e. https://PYDIO_URL). Otherwise you’ll get “Origin is not allowed” / Access-Control-Allow-Origin issues.

Thanks to v60fan on the pydio Forums!

version: '3.6'
networks:
web:
external: true
volumes:
db:
cells:
data:
services:
db:
image: mariadb:10.4.11
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
command: [mysqld, --character-set-server=utf8mb4, --collation-server=utf8mb4_unicode_ci]
expose:
- "3306"
volumes:
- db:/var/lib/mysql
networks:
- default
cells:
image: pydio/cells:2.0.1
restart: unless-stopped
expose:
- "8080"
environment:
- CELLS_BIND=0.0.0.0:8080
- CELLS_EXTERNAL=${PYDIO_URL}
labels:
- traefik.enable=true
- traefik.backend=pydio-cells
- traefik.frontend.rule=Host:${PYDIO_URL}
- traefik.port=8080
- traefik.docker.network=web
volumes:
- cells:/var/cells
- data:/var/cells/data
networks:
- web
- default
depends_on:
- db
@thepenguinthatwants
Copy link

thepenguinthatwants commented Sep 2, 2019

Hi!

Woah finally found a pydio config for traefik.

Strangely I only get the
Loading...
page to show up but it doesnt move on.

Did you need to define php-fpm:9000 on the installation part?

@cur1ou5soul
Copy link

Hi,
I tried your setup Sadly I get an
'Client sent an HTTP request to an HTTPS server.'

Anny Suggestions?

@babyfacenelzon
Copy link

Hi,
I tried your setup Sadly I get an
'Client sent an HTTP request to an HTTPS server.'

Anny Suggestions?

environment:
- CELLS_BIND=0.0.0.0:8080
- CELLS_EXTERNAL=${PYDIO_URL}
- CELLS_NO_TLS=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment