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"
volumes:
etherpad-db:
external: true
name: etherpad-db
etherpad-week-db:
name: etherpad-week-db
networks:
standard:
week:
docker_default:
external: true
name: "docker_default"
......@@ -15,8 +19,6 @@ services:
container_name: etherpad-app
depends_on:
- etherpad-db
links:
- etherpad-db:etherpad-db
security_opt:
- no-new-privileges
mem_limit: "2048m"
......@@ -40,6 +42,7 @@ services:
restart: unless-stopped
networks:
- docker_default
- standard
etherpad-db:
image: registry.picasoft.net/pica-etherpad-db:mysql8.picapatch2
......@@ -56,15 +59,13 @@ services:
# 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
- standard
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"
......@@ -88,6 +89,7 @@ services:
restart: unless-stopped
networks:
- docker_default
- week
etherpad-week-db:
image: registry.picasoft.net/pica-etherpad-db:mysql8.picapatch2
......@@ -104,4 +106,4 @@ services:
# 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
- 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