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

[Etherpad] Use networks rather than links to protect the databases

parent 4e09c306
No related branches found
No related tags found
No related merge requests found
...@@ -2,9 +2,13 @@ version : "2.4" ...@@ -2,9 +2,13 @@ version : "2.4"
volumes: volumes:
etherpad-db: etherpad-db:
external: true name: etherpad-db
etherpad-week-db:
name: etherpad-week-db
networks: networks:
standard:
week:
docker_default: docker_default:
external: true external: true
name: "docker_default" name: "docker_default"
...@@ -15,8 +19,6 @@ services: ...@@ -15,8 +19,6 @@ services:
container_name: etherpad-app container_name: etherpad-app
depends_on: depends_on:
- etherpad-db - etherpad-db
links:
- etherpad-db:etherpad-db
security_opt: security_opt:
- no-new-privileges - no-new-privileges
mem_limit: "2048m" mem_limit: "2048m"
...@@ -40,6 +42,7 @@ services: ...@@ -40,6 +42,7 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- docker_default - docker_default
- standard
etherpad-db: etherpad-db:
image: registry.picasoft.net/pica-etherpad-db:mysql8.picapatch2 image: registry.picasoft.net/pica-etherpad-db:mysql8.picapatch2
...@@ -56,15 +59,13 @@ services: ...@@ -56,15 +59,13 @@ services:
# See https://stackoverflow.com/questions/41134785/how-to-solve-mysql-warning-innodb-page-cleaner-1000ms-intended-loop-took-xxx # 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 command: --innodb_lru_scan_depth=128 --default-authentication-plugin=mysql_native_password
networks: networks:
- docker_default - standard
etherpad-week-app: etherpad-week-app:
image: registry.picasoft.net/pica-etherpad:1.8.4 image: registry.picasoft.net/pica-etherpad:1.8.4
container_name: etherpad-week-app container_name: etherpad-week-app
depends_on: depends_on:
- etherpad-week-db - etherpad-week-db
links:
- etherpad-week-db:etherpad-week-db
security_opt: security_opt:
- no-new-privileges - no-new-privileges
mem_limit: "2048m" mem_limit: "2048m"
...@@ -88,6 +89,7 @@ services: ...@@ -88,6 +89,7 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- docker_default - docker_default
- week
etherpad-week-db: etherpad-week-db:
image: registry.picasoft.net/pica-etherpad-db:mysql8.picapatch2 image: registry.picasoft.net/pica-etherpad-db:mysql8.picapatch2
...@@ -104,4 +106,4 @@ services: ...@@ -104,4 +106,4 @@ services:
# See https://stackoverflow.com/questions/41134785/how-to-solve-mysql-warning-innodb-page-cleaner-1000ms-intended-loop-took-xxx # 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 command: --innodb_lru_scan_depth=128 --default-authentication-plugin=mysql_native_password
networks: networks:
- docker_default - week
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