2021-07-14 21:56:31 +02:00
2021-07-14 21:03:49 +02:00
2021-07-14 21:43:37 +02:00
2021-07-14 20:44:14 +02:00
2021-06-02 11:20:24 +02:00
2021-07-14 21:43:37 +02:00
2021-06-02 11:22:54 +02:00
2021-07-14 21:43:37 +02:00
2020-05-03 00:21:33 +02:00
2021-06-02 08:36:52 +02:00
2021-07-14 20:44:14 +02:00
2021-07-14 21:56:31 +02:00
2020-09-14 20:03:20 +00:00
2020-10-23 04:15:35 +02:00

custom-php

Coöp Cloud + PHP + MariaDB (optional) + Nginx = 🥳

  • Category: Apps
  • Status: ❶💚
  • Image: php, ❶💚, upstream
  • Healthcheck: Yes
  • Backups: Yes
  • Email: ❶💚
  • Tests: ❷💛
  • SSO: No

Basic usage

  1. Set up Docker Swarm and abra
  2. Deploy coop-cloud/traefik
  3. abra app new custom-php --secrets (optionally with --pass if you'd like to save secrets in pass)
  4. abra app YOURAPPDOMAIN config
    • be sure to change $DOMAIN to something that resolves to your Docker swarm box
    • if you need to enable the optional database, uncomment COMPOSE_FILE="compose.yml:compose.mariadb.yml"
  5. abra app YOURAPPDOMAIN deploy
  6. Copy your site files using something like: abra app YOURAPPDOMAIN cp index.html app:/var/www/html/ or if you want to copy an entire directory: tar -cf - -C my_site/path/here . | abra app YOURAPPDOMAIN cp - app:/var/www/html/
  7. Use restore functionality to import a SQL file into the db
  8. Open the configured domain in your browser to check all is good

Email

There is a local or remote SMTP relay configuration available.

  • local: COMPOSE_FILE=compose.yml:compose.mailrelay.yml
  • remote: COMPOSE_FILE=compose.yml:compose.mailrelay.yml:compose.smtp.yml

Below are the instructions for the local relay.

  1. Deploy postfix-relay
  2. abra app YOURAPPDOMAIN config, and uncomment the email lines; change MAIL_FROM to make sure the domain is the same as postfix-relay's $DOMAIN or in its $EXTRA_SENDER_DOMAINS
  3. abra app YOURAPPDOMAIN deploy
Description
Custom PHP application
Readme 198 KiB
Languages
Shell 100%