# 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: MIX_ENV: prod ERL_EPMD_ADDRESS: 127.0.0.1 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