diff --git a/pica-etherpad/docker-compose.yml b/pica-etherpad/docker-compose.yml index ac1fd15b24a6b48f61f6bca86ea106d42af9dde3..fcee74219328c7e318f90aad2b63b96fc121b3d7 100755 --- a/pica-etherpad/docker-compose.yml +++ b/pica-etherpad/docker-compose.yml @@ -57,3 +57,51 @@ services: command: --innodb_lru_scan_depth=128 --default-authentication-plugin=mysql_native_password networks: - docker_default + + etherpad-week-app: + image: registry.picasoft.net/pica-etherpad:1.8.4 + container_name: etherpad-week-app + depends_on: + - etherpad-week-db + links: + - etherpad-week-db:etherpad-week-db + security_opt: + - no-new-privileges + mem_limit: "2048m" + cpus: 0.6 + pids_limit: 1024 + env_file: ./secrets/etherpad-week-app.secrets + volumes: + - ./settings_week.json:/opt/etherpad-lite/settings.json + labels: + traefik.enable: true + traefik.frontend.rule: "Host:week.pad.picasoft.net" + traefik.port: 8080 + environment: + DB_HOST: "etherpad-week-db" + LOGLEVEL: "INFO" + MINIFY: "true" + PORT: 8080 + THEME: "colibris" + TITLE: "Picapad Hebdo" + TRUST_PROXY: "true" + restart: unless-stopped + networks: + - docker_default + + etherpad-week-db: + image: registry.picasoft.net/pica-etherpad-db:mysql8.picapatch2 + container_name: etherpad-week-db + security_opt: + - no-new-privileges + mem_limit: "2048m" + cpus: "0.40" + pids_limit: 1024 + volumes: + - etherpad-db:/var/lib/mysql + env_file: ./secrets/etherpad-week-db.secrets + restart: unless-stopped + # See https://stackoverflow.com/questions/41134785/how-to-solve-mysql-warning-innodb-page-cleaner-1000ms-intended-loop-took-xxx + command: --innodb_lru_scan_depth=128 --default-authentication-plugin=mysql_native_password + networks: + - docker_default