Deploy Apache Answer on Pethost in one click
Questions and answers for a community, a help center or a team, a Stack Overflow of your own
What happens
- You sign in to Pethost or make an account, with a passkey, GitHub or Google.
- No machine yet? You pick a plan, and we prepare one for you. The link waits in your browser until it is ready.
- New project opens at the app. You fill in what it asks for and click Create project: Email, Admin password.
- In a minute or two the app is live at its own address with HTTPS. Its secrets are made for it at random, and its data is in the nightly backup.
- It is a project like any other: its compose.yaml, its .env, its logs and a terminal are in the panel, and your agent can change it, roll it back or restore it.
First steps
Sign in with the email and the admin password you gave (8 to 32 characters); the admin’s user name is admin. Sign-ups are confirmed by email, so add an SMTP server under Admin → Settings → SMTP before you invite people.
What it runs
The template is this compose.yaml and the variables it writes into the project’s .env. Pethost runs the file as it is written.
services:
answer:
image: apache/answer:2.0.3
restart: unless-stopped
# Installed from these on the first start, with SQLite in /data: the admin is made from the
# fields, so the install page is never open to a visitor. A password Answer would refuse stops
# the start instead, since a refused one leaves that page open.
entrypoint:
- bash
- -c
- |
if [ $${#ADMIN_PASSWORD} -lt 8 ] || [ $${#ADMIN_PASSWORD} -gt 32 ]; then
echo "The admin password must be 8 to 32 characters." >&2
exit 1
fi
exec /entrypoint.sh
environment:
AUTO_INSTALL: "true"
DB_TYPE: sqlite3
DB_FILE: /data/answer.db
LANGUAGE: en-US
SITE_NAME: Apache Answer
SITE_URL: ${URL}
CONTACT_EMAIL: ${ADMIN_EMAIL}
ADMIN_NAME: admin
ADMIN_EMAIL: ${ADMIN_EMAIL}
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
EXTERNAL_CONTENT_DISPLAY: ask_before_display
volumes:
- data:/data
volumes:
data: