services: postgres: image: postgres:16-alpine container_name: matrix_postgres restart: unless-stopped environment: POSTGRES_USER: synapse POSTGRES_PASSWORD: bytt_dette POSTGRES_DB: synapse volumes: - ./postgres:/var/lib/postgresql/data synapse: image: ghcr.io/element-hq/synapse:latest container_name: matrix_synapse restart: unless-stopped depends_on: - postgres environment: SYNAPSE_SERVER_NAME: chat.dittdomene.no SYNAPSE_REPORT_STATS: "no" volumes: - ./synapse:/data ports: - "8008:8008" element: image: vectorim/element-web:latest container_name: matrix_element restart: unless-stopped volumes: - ./element-config.json:/app/config.json:ro ports: - "8080:80"