2023-09-15 21:54:06 +00:00
|
|
|
## This file is for testing only, as I don't recommend using Docker Compose
|
|
|
|
## in a production environment
|
2022-10-16 19:25:54 +00:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
2023-07-29 15:45:03 +00:00
|
|
|
image: postgres:14-alpine
|
2023-09-15 21:54:06 +00:00
|
|
|
## Use the following image instead if you want to use PGroonga
|
|
|
|
# image: groonga/pgroonga:3.1.1-alpine-14
|
2023-11-02 20:54:53 +00:00
|
|
|
## Uncomment and tweak these values if necessary
|
|
|
|
# command:
|
|
|
|
# - -c
|
|
|
|
# - session_preload_libraries=auto_explain
|
|
|
|
# - -c
|
|
|
|
# - auto_explain.log_min_duration=250ms
|
|
|
|
# - -c
|
|
|
|
# - auto_explain.log_analyze=on
|
2022-10-16 19:25:54 +00:00
|
|
|
restart: unless-stopped
|
2023-07-29 15:45:03 +00:00
|
|
|
environment:
|
|
|
|
POSTGRES_DB: akkoma
|
|
|
|
POSTGRES_USER: akkoma
|
|
|
|
POSTGRES_PASSWORD: akkoma
|
2022-10-16 19:25:54 +00:00
|
|
|
volumes:
|
2023-07-29 15:45:03 +00:00
|
|
|
- ./docker-db/:/var/lib/postgresql/data/:Z
|
2023-09-15 21:54:06 +00:00
|
|
|
## Use the following volume instead if you are running Docker in
|
2023-09-15 23:11:11 +00:00
|
|
|
## an emulated environment and getting permission errors
|
2023-09-15 21:54:06 +00:00
|
|
|
# - docker-db:/var/lib/postgresql/data/:Z
|
2022-10-16 19:25:54 +00:00
|
|
|
|
|
|
|
akkoma:
|
|
|
|
image: akkoma:latest
|
2024-05-03 20:57:27 +00:00
|
|
|
pull_policy: never
|
2022-10-16 19:25:54 +00:00
|
|
|
build: .
|
|
|
|
restart: unless-stopped
|
2023-07-29 15:45:03 +00:00
|
|
|
environment:
|
|
|
|
DB_NAME: akkoma
|
|
|
|
DB_USER: akkoma
|
|
|
|
DB_PASS: akkoma
|
2022-10-16 19:25:54 +00:00
|
|
|
links:
|
|
|
|
- db
|
2023-07-29 15:45:03 +00:00
|
|
|
ports:
|
|
|
|
- "0.0.0.0:4000:4000"
|
2022-10-16 19:25:54 +00:00
|
|
|
volumes:
|
2023-07-29 15:45:03 +00:00
|
|
|
- ./static/:/var/lib/akkoma/static/:Z
|
|
|
|
- ./uploads/:/var/lib/akkoma/uploads/:Z
|
|
|
|
- ./etc/:/etc/akkoma/:Z
|
2023-09-15 21:58:23 +00:00
|
|
|
|
|
|
|
## Comment out the following container if you want to use Meilisearch
|
|
|
|
# meili:
|
|
|
|
# image: getmeili/meilisearch:v1.3
|
|
|
|
# restart: unless-stopped
|
|
|
|
# environment:
|
|
|
|
# MEILI_NO_ANALYTICS: true
|
|
|
|
|
|
|
|
## Comment out the following container if you want to use Elasticsearch
|
|
|
|
# elastic:
|
|
|
|
# image: elasticsearch:7.17.13
|
|
|
|
# environment:
|
|
|
|
# discovery.type: single-node
|
|
|
|
# xpack.security.enabled: false
|
|
|
|
|
2023-09-15 23:11:11 +00:00
|
|
|
## Enable the following volume if you are running Docker in an emulated
|
|
|
|
## environment and getting permission errors
|
2023-09-15 21:56:23 +00:00
|
|
|
# volumes:
|
|
|
|
# docker-db:
|