akkoma/docker-compose.yml

32 lines
786 B
YAML
Raw Normal View History

2023-07-29 15:45:03 +00:00
# This file is for testing only, as I don't recommend using Docker Compose in a production environment
version: "3.7"
services:
db:
2023-07-29 15:45:03 +00:00
image: postgres:14-alpine
restart: unless-stopped
2023-07-29 15:45:03 +00:00
environment:
POSTGRES_DB: akkoma
POSTGRES_USER: akkoma
POSTGRES_PASSWORD: akkoma
# Comment out the volume below if you encounter any permission errors
volumes:
2023-07-29 15:45:03 +00:00
- ./docker-db/:/var/lib/postgresql/data/:Z
akkoma:
image: akkoma:latest
build: .
restart: unless-stopped
2023-07-29 15:45:03 +00:00
environment:
DB_NAME: akkoma
DB_USER: akkoma
DB_PASS: akkoma
links:
- db
2023-07-29 15:45:03 +00:00
ports:
- "0.0.0.0:4000:4000"
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