Advertisement
Guest User

Untitled

a guest
Sep 10th, 2019
354
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: "3"
  2.  
  3. networks:
  4.   web:
  5.     external: true
  6.   internal:
  7.     external: false
  8.  
  9. services:
  10.   traefik:
  11.     image: traefik
  12.     container_name: traefik
  13.     restart: always
  14.     ports:
  15.      - "80:80"
  16.       - "443:443"
  17.     labels:
  18.      - traefik.enable=true
  19.       - traefik.backend=traefik
  20.       - traefik.frontend.rule=Host:traefik.example.com
  21.       - traefik.port=81
  22.       - traefik.docker.network=web
  23.     volumes:
  24.      - /var/run/docker.sock:/var/run/docker.sock:ro
  25.       - $PWD/traefik.toml:/traefik.toml:ro
  26.       # - $PWD/acme.json:/acme.json:ro
  27.       - $PWD/certs/:/certs/
  28.     networks:
  29.      - internal
  30.       - web
  31.  
  32.   # Cells image with two named volumes for the static and for the data
  33.   cells:
  34.     image: pydio/cells:latest
  35.     hostname: xyz
  36.     domainname: example.com
  37.     restart: always
  38.     volumes:
  39.       # - $PWD/cells:/root/.config/pydio/cells
  40.       - $PWD/certs/:/root/ssl/certs/
  41.     environment:
  42.      - CELLS_BIND=xyz.pydio.com:443
  43.       - CELLS_EXTERNAL=https://xyz.example.com
  44.       - CELLS_SSL_KEY_FILE=/root/ssl/certs/cells.key
  45.       - CELLS_SSL_CERT_FILE=/root/ssl/certs/cells.crt
  46.     labels:
  47.      - traefik.enable=true
  48.       - traefik.backend=xyz
  49.       - traefik.frontend.rule=Host:xyz.pydio.com
  50.       - traefik.docker.network=web
  51.       - traefik.port=443
  52.       - traefik.protocol=https
  53.     networks:
  54.       - internal
  55.       - web
  56.     depends_on:
  57.      - mysql
  58.  
  59.   # MySQL image with a default database cells and a dedicated user pydio
  60.   mysql:
  61.     image: mysql:latest
  62.     restart: always
  63.     environment:
  64.       MYSQL_ROOT_PASSWORD: root
  65.       MYSQL_DATABASE: cells
  66.       MYSQL_USER: pydio
  67.       MYSQL_PASSWORD: P@ssw0rd
  68.     networks:
  69.       - internal
  70.     labels:
  71.      - traefik.enable=false
  72.     command: [mysqld, --character-set-server=utf8mb4, --collation-server=utf8mb4_unicode_ci]
  73.     logging:
  74.       driver: none
Advertisement
RAW Paste Data Copied
Advertisement