#Everything in this dockerfile is duplicated: there is a "standard" instance and a "week" instance.
#Each one of them has its own 3 volumes, 2 networks and 3 containers.
#The settings.json and settings_week.json in the directory of this docker-compose are bound (mounted) to the app containers.
#It also requires the existence of "secret" files containing passwords.
#This docker-compose requires the existence of an external network, "proxy". Traefik labels have been added, so "proxy" can be a traefik reverse-proxy.
volumes:
etherpad-db:
#DATABASES
standard_db:
name:etherpad-db-pg
weekpad-db:
week_db:
name:weekpad-db
deleted-pads-standard:
#BACKUP OF DELETED PADS
standard_deleted-pads:
name:deleted-pads-standard
deleted-pads-week:
week_deleted-pads:
name:deleted-pads-week
etherpad-api-key-week:
name:etherpad-api-key-week
api-key-standard:
name:etherpad-api-key-standard
api-key-week:
name:etherpad-api-key-week
#FOR SHARING THE API KEY between app and dpad (written to a text file by app)
standard_api-key:
name:etherpad_standard_api-key
week_api-key:
name:etherpad_week_api-key
networks:
standard:
name:etherpad_main
week:
name:etherpad_week
#app-db: used by the app to query its postgresql database
standard_app-db:
name:etherpad_standard_app-queries-database
week_app-db:
name:etherpad_week_app-queries-database
#dpad-app: used by the dpad script to query the app via its web API
standard_dpad-app:
name:etherpad_standard_dpad-queries-app
week_dpad-app:
name:etherpad_week-dpad-queries-app
#this network has access to the apps, exposing their web frontends