addes mising ymls

root 2021-05-19 19:30:24 +02:00
parent 7a8217ed21
commit e911dba833
8 changed files with 73 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
digitaldemocratic.conf
*.yml
docker-compose.yml
**/*.yaml
custom/

View File

View File

View File

View File

View File

@ -0,0 +1,24 @@
version: '3.7'
services:
dd-admin:
container_name: dd-admin
build:
context: ${BUILD_ROOT_PATH}
dockerfile: admin/docker/Dockerfile
target: production
args: ## DEVELOPMENT
SSH_ROOT_PWD: ${IPA_ADMIN_PWD}
SSH_PORT: 2022
networks:
- isard_net
ports:
- "2022:22"
# - "9000:9000"
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
- ${BUILD_ROOT_PATH}/admin/src:/admin # Revome in production
- ${BUILD_ROOT_PATH}/custom:/admin/custom #:ro in production
env_file:
- .env
command: sleep infinity

View File

@ -0,0 +1,27 @@
version: '3.7'
services:
dd-backups:
container_name: dd-backups
image: prodrigestivill/postgres-backup-local
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
- ${BACKUP_FOLDER}/sso:/backups
# links:
# - ${KEYCLOAK_DB_ADDR}:${KEYCLOAK_DB_ADDR}
# depends_on:
# - ${KEYCLOAK_DB_ADDR}
environment:
- TZ="Europe/Madrid"
- POSTGRES_HOST=${KEYCLOAK_DB_ADDR}
- POSTGRES_DB=${KEYCLOAK_DB_DATABASE},moodle,nextcloud
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_EXTRA_OPTS=-Z9 --schema=public --blobs
- SCHEDULE=@every 0h30m00s
- BACKUP_KEEP_DAYS=7
- BACKUP_KEEP_WEEKS=4
- BACKUP_KEEP_MONTHS=6
- HEALTHCHECK_PORT=81
networks:
- isard_net

View File

@ -0,0 +1,21 @@
pgbackups:
container_name: Backup
image: prodrigestivill/postgres-backup-local
restart: always
volumes:
- ./backup:/backups
links:
- db:db
depends_on:
- db
environment:
- POSTGRES_HOST=db
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_EXTRA_OPTS=-Z9 --schema=public --blobs
- SCHEDULE=@every 0h30m00s
- BACKUP_KEEP_DAYS=7
- BACKUP_KEEP_WEEKS=4
- BACKUP_KEEP_MONTHS=6
- HEALTHCHECK_PORT=81