← All templates · Social and community
Deploy Apache Answer in one click
Questions and answers for a community, a help center or a team, a Stack Overflow of your own
A self-hosted alternative to Stack Overflow for Teams.
What is Apache Answer?
Apache Answer is an open-source Q&A platform, a question-and-answer site that teams run instead of Stack Overflow for Teams. People write questions and answers in Markdown with a live preview, vote on them, and the asker accepts the answer that worked. Tags group the questions, and search narrows by tag, author or score. Good posts earn reputation and badges, and reputation unlocks privileges such as editing other people's posts, with every revision kept in the post's history.
Apache Answer suits a product's help center, an open-source project's community or a company's internal knowledge base. Self-host it and the questions stay in your own database. Admins set how much reputation each privilege takes, from a lenient preset for a small private team to a strict one for a mature public community. The catch is email: by default new accounts confirm their address, so connect an SMTP server before you invite anyone.
Hosting Apache Answer on Pethost
- You sign in to Pethost with a passkey, GitHub or Google. No machine yet? You pick a plan, and the link waits until it is ready.
- New project opens at Apache Answer. You fill in what it asks for and click Create project: Email, Admin password.
- In a minute or two Apache Answer is live at its own address with HTTPS. Its secrets are made at random, and its data is in the nightly backup.
- It is a project like any other: you or your agent can change it, roll it back or restore it.
Questions about Apache Answer
Is Apache Answer free and open source?
Yes. It is released under the Apache License 2.0, so it is free to run, change and use in a company. It is a top-level project of the Apache Software Foundation, written in Go with a React interface.
Apache Answer vs Stack Overflow for Teams
The core is the same: ask, answer, vote, accept. The difference is who runs it. Apache Answer is open source, has no per-user fee, and takes plugins for login, search, file storage and Slack notifications.
Does Apache Answer support SSO or Google login?
Yes, over OAuth2. The official Docker image includes the OAuth2 Basic connector, which an admin points at Google, GitHub, Okta or another OAuth2 provider in its plugin settings. Other plugins are added by rebuilding with answer build.
Can Apache Answer be private for an internal team?
Yes. With Login required turned on, only signed-in users can see the site. Admins can also close new registrations or accept sign-ups only from the company's email domains.
Does Apache Answer use SQLite, MySQL or PostgreSQL?
It supports all three, and this template uses SQLite. The project's FAQ recommends SQLite for trying Answer out and MySQL for real use, and Answer cannot yet migrate data from one database type to another.
How much memory and disk does Apache Answer need?
Apache Answer is light: about 150 MB of memory, and tens of thousands of questions take well under a gigabyte. On Pethost the Starter plan is enough for it, with room for other apps beside it.
Apache Answer Docker Compose file
The template is this compose.yaml and the variables written into the project’s .env as it is created. Pethost runs the file as it is written.
Containers: answer (apache/answer:2.0.3).
Volumes, in the nightly backup: data.
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:
More in Social and community
- listmonkA newsletter and mailing list manager
- LemmyA link aggregator and forum for the fediverse
- NodeBBA forum for your community
- MastodonYour own server in the fediverse: posts, follows and replies across Mastodon and beyond
- MattermostOpen-source team chat with channels, threads, file sharing and integrations
- PixelfedPhoto sharing without ads or algorithms, an Instagram alternative that federates with Mastodon