akkoma/docker-compose.yml

31 lines
786 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
restart: unless-stopped
environment:
POSTGRES_DB: akkoma
POSTGRES_USER: akkoma
POSTGRES_PASSWORD: akkoma
# Comment out the volume below if you encounter any permission errors
volumes:
- ./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