Skip to content

Commit

Permalink
Added docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Nov 28, 2024
1 parent 473ca69 commit 7832fbd
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
31 changes: 3 additions & 28 deletions .github/workflows/1maxPadPerInstance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,6 @@ on: [push, pull_request]

jobs:
deployAndLoadTest:
services:
etherpad1:
options:
--name etherpad1
image: etherpad/etherpad
ports:
- 9001:9001
volumes:
- "./support/settings.json:/opt/etherpad-lite/settings.json"
- "./test1:/opt/etherpad-lite/var"
etherpad2:
image: etherpad/etherpad
options:
--name etherpad2
ports:
- 9002:9001
volumes:
- "./support/settings.json:/opt/etherpad-lite/settings.json"
- "./test2:/opt/etherpad-lite/var"
etherpad3:
options:
--name etherpad3
image: etherpad/etherpad
ports:
- 9003:9001
volumes:
- "./support/settings.json:/opt/etherpad-lite/settings.json"
- "./test3:/opt/etherpad-lite/var"
# run on pushes to any branch
# run on PRs from external forks
if: |
Expand Down Expand Up @@ -66,6 +38,9 @@ jobs:
- name: install dependencies
run: pnpm i

- name: Setup etherpads
run: docker-compose up -d

- name: support 1 pad per instances
run: sed 's/5/1/g' settings.json.template > settings.json

Expand Down
25 changes: 25 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
services:
etherpad1:
image: etherpad/etherpad
container_name: etherpad1
ports:
- "9001:9001"
volumes:
- "./support/settings.json:/opt/etherpad-lite/settings.json"
- "./test1:/opt/etherpad-lite/var"
etherpad2:
image: etherpad/etherpad
container_name: etherpad2
ports:
- "9002:9001"
volumes:
- "./support/settings.json:/opt/etherpad-lite/settings.json"
- "./test2:/opt/etherpad-lite/var"
etherpad3:
container_name: etherpad3
image: etherpad/etherpad
ports:
- "9003:9001"
volumes:
- "./support/settings.json:/opt/etherpad-lite/settings.json"
- "./test3:/opt/etherpad-lite/var"

0 comments on commit 7832fbd

Please sign in to comment.