akkoma/docker-compose.yml

37 lines
1009 B
YAML

## 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
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
## emulated environments and getting permission errors
# - docker-db:/var/lib/postgresql/data/:Z
akkoma:
image: akkoma:latest
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