all-in-one/php/containers.json

460 lines
13 KiB
JSON
Raw Normal View History

2021-11-30 18:20:42 +08:00
{
"production": [
{
"container_name": "nextcloud-aio-apache",
"depends_on": [
"nextcloud-aio-onlyoffice",
2021-11-30 18:20:42 +08:00
"nextcloud-aio-collabora",
"nextcloud-aio-talk",
"nextcloud-aio-nextcloud"
2021-11-30 18:20:42 +08:00
],
"displayName": "Apache",
"image": "nextcloud/aio-apache",
2021-11-30 18:20:42 +08:00
"ports": [
"%APACHE_PORT%/tcp"
2021-11-30 18:20:42 +08:00
],
"internalPorts": [
"%APACHE_PORT%"
2021-11-30 18:20:42 +08:00
],
"secrets": [],
"environment": [
2021-11-30 18:20:42 +08:00
"NC_DOMAIN=%NC_DOMAIN%",
"NEXTCLOUD_HOST=nextcloud-aio-nextcloud",
"COLLABORA_HOST=nextcloud-aio-collabora",
"TALK_HOST=nextcloud-aio-talk",
"APACHE_PORT=%APACHE_PORT%",
"ONLYOFFICE_HOST=nextcloud-aio-onlyoffice",
"TZ=%TIMEZONE%",
"APACHE_MAX_SIZE=%APACHE_MAX_SIZE%",
"APACHE_MAX_TIME=%NEXTCLOUD_MAX_TIME%"
2021-11-30 18:20:42 +08:00
],
"volumes": [
{
"name": "nextcloud_aio_nextcloud",
"location": "/var/www/html",
"writeable": false
},
{
"name": "nextcloud_aio_apache",
"location": "/mnt/data",
"writeable": true
}
],
"stop_grace_period": 10,
2021-11-30 18:20:42 +08:00
"restartPolicy": "unless-stopped"
},
{
"container_name": "nextcloud-aio-database",
"depends_on": [],
2021-11-30 18:20:42 +08:00
"displayName": "Database",
"image": "nextcloud/aio-postgresql",
2021-11-30 18:20:42 +08:00
"ports": [],
"internalPorts": [
"5432"
],
"secrets": [
"DATABASE_PASSWORD"
],
"volumes": [
{
"name": "nextcloud_aio_database",
"location": "/var/lib/postgresql/data",
"writeable": true
},
{
"name": "nextcloud_aio_database_dump",
"location": "/mnt/data",
"writeable": true
}
],
"environment": [
2021-11-30 18:20:42 +08:00
"POSTGRES_PASSWORD=%DATABASE_PASSWORD%",
"POSTGRES_DB=nextcloud_database",
"POSTGRES_USER=nextcloud",
"TZ=%TIMEZONE%",
"PGTZ=%TIMEZONE%"
2021-11-30 18:20:42 +08:00
],
"stop_grace_period": 1800,
2021-11-30 18:20:42 +08:00
"restartPolicy": "unless-stopped"
},
{
"container_name": "nextcloud-aio-nextcloud",
"depends_on": [
2021-11-30 18:20:42 +08:00
"nextcloud-aio-database",
"nextcloud-aio-redis",
"nextcloud-aio-clamav",
"nextcloud-aio-fulltextsearch",
"nextcloud-aio-imaginary"
2021-11-30 18:20:42 +08:00
],
"displayName": "Nextcloud",
"image": "nextcloud/aio-nextcloud",
2021-11-30 18:20:42 +08:00
"ports": [],
"internalPorts": [
"9000"
],
"secrets": [
"DATABASE_PASSWORD",
"REDIS_PASSWORD",
"NEXTCLOUD_PASSWORD",
"TURN_SECRET",
"SIGNALING_SECRET"
],
"volumes": [
{
"name": "nextcloud_aio_nextcloud",
"location": "/var/www/html",
"writeable": true
},
{
"name": "%NEXTCLOUD_DATADIR%",
2021-11-30 18:20:42 +08:00
"location": "/mnt/ncdata",
"writeable": true
},
{
"name": "%NEXTCLOUD_MOUNT%",
"location": "%NEXTCLOUD_MOUNT%",
"writeable": true
},
{
"name": "%NEXTCLOUD_TRUSTED_CACERTS_DIR%",
"location": "/usr/local/share/ca-certificates",
"writeable": false
2021-11-30 18:20:42 +08:00
}
],
"environment": [
2021-11-30 18:20:42 +08:00
"POSTGRES_HOST=nextcloud-aio-database",
"POSTGRES_PASSWORD=%DATABASE_PASSWORD%",
"POSTGRES_DB=nextcloud_database",
"POSTGRES_USER=nextcloud",
"REDIS_HOST=nextcloud-aio-redis",
"REDIS_HOST_PASSWORD=%REDIS_PASSWORD%",
"AIO_TOKEN=%AIO_TOKEN%",
"NC_DOMAIN=%NC_DOMAIN%",
"ADMIN_USER=admin",
"ADMIN_PASSWORD=%NEXTCLOUD_PASSWORD%",
"NEXTCLOUD_DATA_DIR=/mnt/ncdata",
"OVERWRITEHOST=%NC_DOMAIN%",
"OVERWRITEPROTOCOL=https",
"TURN_SECRET=%TURN_SECRET%",
"SIGNALING_SECRET=%SIGNALING_SECRET%",
"ONLYOFFICE_SECRET=%ONLYOFFICE_SECRET%",
"AIO_URL=%AIO_URL%",
"NEXTCLOUD_MOUNT=%NEXTCLOUD_MOUNT%",
"CLAMAV_ENABLED=%CLAMAV_ENABLED%",
"CLAMAV_HOST=nextcloud-aio-clamav",
"ONLYOFFICE_ENABLED=%ONLYOFFICE_ENABLED%",
"COLLABORA_ENABLED=%COLLABORA_ENABLED%",
"COLLABORA_HOST=nextcloud-aio-collabora",
"TALK_ENABLED=%TALK_ENABLED%",
"ONLYOFFICE_HOST=nextcloud-aio-onlyoffice",
"UPDATE_NEXTCLOUD_APPS=%UPDATE_NEXTCLOUD_APPS%",
"TZ=%TIMEZONE%",
"TALK_PORT=%TALK_PORT%",
"IMAGINARY_ENABLED=%IMAGINARY_ENABLED%",
"IMAGINARY_HOST=nextcloud-aio-imaginary",
"PHP_UPLOAD_LIMIT=%NEXTCLOUD_UPLOAD_LIMIT%",
"PHP_MEMORY_LIMIT=%NEXTCLOUD_MEMORY_LIMIT%",
"FULLTEXTSEARCH_ENABLED=%FULLTEXTSEARCH_ENABLED%",
"FULLTEXTSEARCH_HOST=nextcloud-aio-fulltextsearch",
"PHP_MAX_TIME=%NEXTCLOUD_MAX_TIME%",
"TRUSTED_CACERTS_DIR=%NEXTCLOUD_TRUSTED_CACERTS_DIR%",
"STARTUP_APPS=%NEXTCLOUD_STARTUP_APPS%",
"ADDITIONAL_APKS=%NEXTCLOUD_ADDITIONAL_APKS%",
"ADDITIONAL_PHP_EXTENSIONS=%NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS%"
2021-11-30 18:20:42 +08:00
],
"stop_grace_period": 10,
2021-11-30 18:20:42 +08:00
"restartPolicy": "unless-stopped"
},
{
"container_name": "nextcloud-aio-redis",
"depends_on": [],
2021-11-30 18:20:42 +08:00
"displayName": "Redis",
"image": "nextcloud/aio-redis",
2021-11-30 18:20:42 +08:00
"ports": [],
"internalPorts": [
"6379"
],
"environment": [
"REDIS_HOST_PASSWORD=%REDIS_PASSWORD%",
"TZ=%TIMEZONE%"
2021-11-30 18:20:42 +08:00
],
"volumes": [
{
"name": "nextcloud_aio_redis",
"location": "/data",
"writeable": true
}
],
2021-11-30 18:20:42 +08:00
"secrets": [
"REDIS_PASSWORD",
"ONLYOFFICE_SECRET"
2021-11-30 18:20:42 +08:00
],
"stop_grace_period": 10,
2021-11-30 18:20:42 +08:00
"restartPolicy": "unless-stopped"
},
{
"container_name": "nextcloud-aio-collabora",
"depends_on": [],
2021-11-30 18:20:42 +08:00
"displayName": "Collabora",
"image": "nextcloud/aio-collabora",
2021-11-30 18:20:42 +08:00
"ports": [],
"internalPorts": [
"9980"
],
"environment": [
"aliasgroup1=https://%NC_DOMAIN%:443",
"extra_params=--o:ssl.enable=false --o:ssl.termination=true --o:logging.level=warning --o:home_mode.enable=true %COLLABORA_SECCOMP_POLICY%",
"dictionaries=%COLLABORA_DICTIONARIES%",
"TZ=%TIMEZONE%"
2021-11-30 18:20:42 +08:00
],
"volumes": [
{
"name": "nextcloud_aio_collabora_fonts",
"location": "/opt/cool/systemplate/tmpfonts",
"writeable": true
}
],
2021-11-30 18:20:42 +08:00
"secrets": [],
"stop_grace_period": 10,
2021-11-30 18:20:42 +08:00
"restartPolicy": "unless-stopped"
},
{
"container_name": "nextcloud-aio-talk",
"depends_on": [],
2021-11-30 18:20:42 +08:00
"displayName": "Talk",
"image": "nextcloud/aio-talk",
2021-11-30 18:20:42 +08:00
"ports": [
"%TALK_PORT%/tcp",
"%TALK_PORT%/udp"
2021-11-30 18:20:42 +08:00
],
"internalPorts": [
"%TALK_PORT%"
2021-11-30 18:20:42 +08:00
],
"environment": [
2021-11-30 18:20:42 +08:00
"NC_DOMAIN=%NC_DOMAIN%",
"TURN_SECRET=%TURN_SECRET%",
"SIGNALING_SECRET=%SIGNALING_SECRET%",
"JANUS_API_KEY=%JANUS_API_KEY%",
"TZ=%TIMEZONE%",
"TALK_PORT=%TALK_PORT%"
2021-11-30 18:20:42 +08:00
],
"volumes": [],
"secrets": [
"TURN_SECRET",
"SIGNALING_SECRET",
"JANUS_API_KEY"
],
"stop_grace_period": 10,
2021-11-30 18:20:42 +08:00
"restartPolicy": "unless-stopped"
},
{
"container_name": "nextcloud-aio-borgbackup",
"depends_on": [],
2021-11-30 18:20:42 +08:00
"displayName": "Borgbackup",
"image": "nextcloud/aio-borgbackup",
2021-11-30 18:20:42 +08:00
"ports": [],
"internalPorts": [],
"environment": [
2021-11-30 18:20:42 +08:00
"BORG_PASSWORD=%BORGBACKUP_PASSWORD%",
"BORG_MODE=%BORGBACKUP_MODE%",
"SELECTED_RESTORE_TIME=%SELECTED_RESTORE_TIME%",
"BACKUP_RESTORE_PASSWORD=%BACKUP_RESTORE_PASSWORD%",
"ADDITIONAL_DIRECTORIES_BACKUP=%ADDITIONAL_DIRECTORIES_BACKUP%",
"BORGBACKUP_HOST_LOCATION=%BORGBACKUP_HOST_LOCATION%"
2021-11-30 18:20:42 +08:00
],
"volumes": [
{
"name": "nextcloud_aio_backup_cache",
"location": "/root",
"writeable": true
},
{
"name": "nextcloud_aio_nextcloud",
"location": "/nextcloud_aio_volumes/nextcloud_aio_nextcloud",
"writeable": true
},
{
"name": "%NEXTCLOUD_DATADIR%",
2021-11-30 18:20:42 +08:00
"location": "/nextcloud_aio_volumes/nextcloud_aio_nextcloud_data",
"writeable": true
},
{
"name": "nextcloud_aio_database",
"location": "/nextcloud_aio_volumes/nextcloud_aio_database",
"writeable": true
},
{
"name": "nextcloud_aio_database_dump",
"location": "/nextcloud_aio_volumes/nextcloud_aio_database_dump",
"writeable": true
},
{
"name": "nextcloud_aio_apache",
"location": "/nextcloud_aio_volumes/nextcloud_aio_apache",
"writeable": true
},
{
"name": "nextcloud_aio_mastercontainer",
"location": "/nextcloud_aio_volumes/nextcloud_aio_mastercontainer",
"writeable": true
},
{
"name": "%BORGBACKUP_HOST_LOCATION%",
"location": "/mnt/borgbackup",
"writeable": true
},
{
"name": "nextcloud_aio_elasticsearch",
"location": "/nextcloud_aio_volumes/nextcloud_aio_elasticsearch",
"writeable": true
},
{
"name": "nextcloud_aio_redis",
"location": "/mnt/redis",
"writeable": true
2021-11-30 18:20:42 +08:00
}
],
"secrets": [
"BORGBACKUP_PASSWORD"
],
"stop_grace_period": 10,
2021-11-30 18:20:42 +08:00
"restartPolicy": ""
},
{
"container_name": "nextcloud-aio-watchtower",
"depends_on": [],
2021-11-30 18:20:42 +08:00
"displayName": "Watchtower",
"image": "nextcloud/aio-watchtower",
2021-11-30 18:20:42 +08:00
"ports": [],
"internalPorts": [],
"environment": [
2021-11-30 18:20:42 +08:00
"CONTAINER_TO_UPDATE=nextcloud-aio-mastercontainer"
],
"volumes": [
{
"name": "%DOCKER_SOCKET_PATH%",
2021-11-30 18:20:42 +08:00
"location": "/var/run/docker.sock",
"writeable": false
}
],
"secrets": [],
"stop_grace_period": 10,
2021-11-30 18:20:42 +08:00
"restartPolicy": ""
},
{
"depends_on": [],
"container_name": "nextcloud-aio-domaincheck",
2021-11-30 18:20:42 +08:00
"displayName": "Domaincheck",
"image": "nextcloud/aio-domaincheck",
2021-11-30 18:20:42 +08:00
"ports": [
"%APACHE_PORT%/tcp"
2021-11-30 18:20:42 +08:00
],
"internalPorts": [],
"environment": [
"INSTANCE_ID=%INSTANCE_ID%",
"APACHE_PORT=%APACHE_PORT%"
2021-11-30 18:20:42 +08:00
],
"volumes": [],
"secrets": [
"INSTANCE_ID"
],
"stop_grace_period": 1,
2021-11-30 18:20:42 +08:00
"restartPolicy": ""
},
{
"container_name": "nextcloud-aio-clamav",
"depends_on": [],
"displayName": "ClamAV",
"image": "nextcloud/aio-clamav",
"ports": [],
"internalPorts": [
"3310"
],
"environment": [
"TZ=%TIMEZONE%",
"CLAMD_STARTUP_TIMEOUT=90"
],
"volumes": [
{
"name": "nextcloud_aio_clamav",
"location": "/var/lib/clamav",
"writeable": true
}
],
"secrets": [],
"stop_grace_period": 10,
"restartPolicy": "unless-stopped"
},
{
"container_name": "nextcloud-aio-onlyoffice",
"depends_on": [],
"displayName": "OnlyOffice",
"image": "nextcloud/aio-onlyoffice",
"ports": [],
"internalPorts": [
"80"
],
"environment": [
"TZ=%TIMEZONE%",
"JWT_ENABLED=true",
"JWT_HEADER=AuthorizationJwt",
"JWT_SECRET=%ONLYOFFICE_SECRET%"
],
"volumes": [
{
"name": "nextcloud_aio_onlyoffice",
"location": "/var/lib/onlyoffice",
"writeable": true
}
],
"secrets": [
"ONLYOFFICE_SECRET"
],
"stop_grace_period": 10,
"restartPolicy": "unless-stopped"
},
{
"container_name": "nextcloud-aio-imaginary",
"depends_on": [],
"displayName": "Imaginary",
"image": "nextcloud/aio-imaginary",
"ports": [],
"internalPorts": [
"9000"
],
"environment": [
"TZ=%TIMEZONE%"
],
"volumes": [],
"secrets": [],
"stop_grace_period": 10,
"restartPolicy": "unless-stopped"
},
{
"container_name": "nextcloud-aio-fulltextsearch",
"depends_on": [],
"displayName": "Fulltextsearch",
"image": "nextcloud/aio-fulltextsearch",
"ports": [],
"internalPorts": [
"9200"
],
"environment": [
"TZ=%TIMEZONE%",
"discovery.type=single-node",
"ES_JAVA_OPTS=-Xms1024M -Xmx1024M"
],
"volumes": [
{
"name": "nextcloud_aio_elasticsearch",
"location": "/usr/share/elasticsearch/data",
"writeable": true
}
],
"secrets": [],
"stop_grace_period": 10,
"restartPolicy": "unless-stopped"
2021-11-30 18:20:42 +08:00
}
]
}