Skip to content
Snippets Groups Projects
Unverified Commit 4704ab96 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[Etherpad] Whoops, switched Compose files

parent 24368f56
No related branches found
No related tags found
1 merge request!57Delete pad after delay
...@@ -2,27 +2,27 @@ version : "3.7" ...@@ -2,27 +2,27 @@ version : "3.7"
volumes: volumes:
db: db:
name: weekpad-db name: etherpad-db-pg
deleted-pads: deleted-pads:
name: deleted-pads-week name: deleted-pads-standard
api-key: api-key:
name: etherpad-api-week-key name: etherpad-api-key
networks: networks:
app-db: app-db:
name: etherpad_week-queries-database name: etherpad-queries-database
dpad-app: dpad-app:
name: etherpad_week-dpad-queries-app name: etherpad-dpad-queries-app
proxy: proxy:
external: true external: true
services: services:
db: db:
image: postgres:12 image: postgres:12
container_name: etherpad_week_db container_name: etherpad_db
volumes: volumes:
- db:/var/lib/postgresql/data - db:/var/lib/postgresql/data
env_file: ./secrets/etherpad-week-db.secrets env_file: ./secrets/etherpad-db.secrets
networks: networks:
- app-db - app-db
restart: unless-stopped restart: unless-stopped
...@@ -30,24 +30,24 @@ services: ...@@ -30,24 +30,24 @@ services:
app: app:
image: registry.picasoft.net/pica-etherpad:1.8.6 image: registry.picasoft.net/pica-etherpad:1.8.6
build: .. build: ..
container_name: etherpad_week_app container_name: etherpad_app
env_file: ./secrets/etherpad-week-app.secrets env_file: ./secrets/etherpad-app.secrets
volumes: volumes:
- ./settings.json:/opt/etherpad-lite/settings.json:ro - ./settings.json:/opt/etherpad-lite/settings.json:ro
- api-key:/mountedAPIkey - api-key:/mountedAPIkey
command: ["--apikey", "/mountedAPIkey/APIKEY.txt"] command: ["--apikey", "/mountedAPIkey/APIKEY.txt"]
labels: labels:
traefik.http.routers.etherpad-app.entrypoints: websecure traefik.http.routers.etherpad-app.entrypoints: websecure
traefik.http.routers.etherpad-app.rule: Host(`week.pad.picasoft.net`) traefik.http.routers.etherpad-app.rule: Host(`pad.picasoft.net`)
traefik.http.services.etherpad-app.loadbalancer.server.port: 8080 traefik.http.services.etherpad-app.loadbalancer.server.port: 8080
traefik.enable: true traefik.enable: true
environment: environment:
DB_HOST: "etherpad_week_db" DB_HOST: "etherpad_db"
LOGLEVEL: "INFO" LOGLEVEL: "INFO"
MINIFY: "true" MINIFY: "true"
PORT: 8080 PORT: 8080
THEME: "colibris" THEME: "colibris"
TITLE: "Picapad Hebdo" TITLE: "Picapad"
TRUST_PROXY: "true" TRUST_PROXY: "true"
networks: networks:
- proxy - proxy
...@@ -69,9 +69,9 @@ services: ...@@ -69,9 +69,9 @@ services:
- dpad-app - dpad-app
environment: environment:
# Must match app container name and port # Must match app container name and port
URL: "http://etherpad_week_app:8080" URL: "http://etherpad_app:8080"
# In seconds (14 days). MUST be COHERENT with settings.json # In seconds (2 years). MUST be COHERENT with settings.json
DEL: 1209600 DEL: 71712000
# Same mount point than deleted-pads # Same mount point than deleted-pads
DIR: "/opt/etherpad-lite/deleted_pads" DIR: "/opt/etherpad-lite/deleted_pads"
# Same mount point than api-key + APIKEY.txt # Same mount point than api-key + APIKEY.txt
......
version : "3.7" version : "3.7"
volumes: volumes:
db: db:
name: etherpad-db-pg name: weekpad-db
deleted-pads: deleted-pads:
name: deleted-pads-standard name: deleted-pads-week
api-key: api-key:
name: etherpad-api-key name: etherpad-api-week-key
networks: networks:
app-db: app-db:
name: etherpad-queries-database name: etherpad_week-queries-database
dpad-app: dpad-app:
name: etherpad-dpad-queries-app name: etherpad_week-dpad-queries-app
proxy: proxy:
external: true external: true
services: services:
db: db:
image: postgres:12 image: postgres:12
container_name: etherpad_db container_name: etherpad_week_db
volumes: volumes:
- db:/var/lib/postgresql/data - db:/var/lib/postgresql/data
env_file: ./secrets/etherpad-db.secrets env_file: ./secrets/etherpad-week-db.secrets
networks: networks:
- app-db - app-db
restart: unless-stopped restart: unless-stopped
...@@ -30,24 +31,24 @@ services: ...@@ -30,24 +31,24 @@ services:
app: app:
image: registry.picasoft.net/pica-etherpad:1.8.6 image: registry.picasoft.net/pica-etherpad:1.8.6
build: .. build: ..
container_name: etherpad_app container_name: etherpad_week_app
env_file: ./secrets/etherpad-app.secrets env_file: ./secrets/etherpad-week-app.secrets
volumes: volumes:
- ./settings.json:/opt/etherpad-lite/settings.json:ro - ./settings.json:/opt/etherpad-lite/settings.json:ro
- api-key:/mountedAPIkey - api-key:/mountedAPIkey
command: ["--apikey", "/mountedAPIkey/APIKEY.txt"] command: ["--apikey", "/mountedAPIkey/APIKEY.txt"]
labels: labels:
traefik.http.routers.etherpad-app.entrypoints: websecure traefik.http.routers.etherpad-app.entrypoints: websecure
traefik.http.routers.etherpad-app.rule: Host(`pad.picasoft.net`) traefik.http.routers.etherpad-app.rule: Host(`week.pad.picasoft.net`)
traefik.http.services.etherpad-app.loadbalancer.server.port: 8080 traefik.http.services.etherpad-app.loadbalancer.server.port: 8080
traefik.enable: true traefik.enable: true
environment: environment:
DB_HOST: "etherpad_db" DB_HOST: "etherpad_week_db"
LOGLEVEL: "INFO" LOGLEVEL: "INFO"
MINIFY: "true" MINIFY: "true"
PORT: 8080 PORT: 8080
THEME: "colibris" THEME: "colibris"
TITLE: "Picapad" TITLE: "Picapad Hebdo"
TRUST_PROXY: "true" TRUST_PROXY: "true"
networks: networks:
- proxy - proxy
...@@ -69,9 +70,9 @@ services: ...@@ -69,9 +70,9 @@ services:
- dpad-app - dpad-app
environment: environment:
# Must match app container name and port # Must match app container name and port
URL: "http://etherpad_app:8080" URL: "http://etherpad_week_app:8080"
# In seconds (2 years). MUST be COHERENT with settings.json # In seconds (14 days). MUST be COHERENT with settings.json
DEL: 71712000 DEL: 1209600
# Same mount point than deleted-pads # Same mount point than deleted-pads
DIR: "/opt/etherpad-lite/deleted_pads" DIR: "/opt/etherpad-lite/deleted_pads"
# Same mount point than api-key + APIKEY.txt # Same mount point than api-key + APIKEY.txt
......
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