## This file is for testing only, as I don't recommend using Docker Compose ## in a production environment version: "3.7" services: db: image: postgres:14-alpine ## Use the following image instead if you want to use PGroonga # image: groonga/pgroonga:3.1.1-alpine-14 ## 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 restart: unless-stopped environment: POSTGRES_DB: akkoma POSTGRES_USER: akkoma POSTGRES_PASSWORD: akkoma volumes: - ./docker-db/:/var/lib/postgresql/data/:Z ## Use the following volume instead if you are running Docker in ## an emulated environment and getting permission errors # - docker-db:/var/lib/postgresql/data/:Z akkoma: image: akkoma:latest pull_policy: never build: . restart: unless-stopped environment: DB_NAME: akkoma DB_USER: akkoma DB_PASS: akkoma links: - db ports: - "0.0.0.0:4000:4000" volumes: - ./static/:/var/lib/akkoma/static/:Z - ./uploads/:/var/lib/akkoma/uploads/:Z - ./etc/:/etc/akkoma/:Z ## 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 ## Enable the following volume if you are running Docker in an emulated ## environment and getting permission errors # volumes: # docker-db: