Skip to content
Snippets Groups Projects
Verified Commit 34d4f01a authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[Etherpad] Add week instance in Docker Compose

parent cd2a3c94
No related branches found
No related tags found
No related merge requests found
...@@ -57,3 +57,51 @@ services: ...@@ -57,3 +57,51 @@ services:
command: --innodb_lru_scan_depth=128 --default-authentication-plugin=mysql_native_password command: --innodb_lru_scan_depth=128 --default-authentication-plugin=mysql_native_password
networks: networks:
- docker_default - 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment