version: '3' services: synapse: image: matrixdotorg/synapse:latest restart: unless-stopped environment: - SYNAPSE_CONFIG_PATH=/data/homeserver.yaml - SERVERNAME=${homeServerFQDN} - PUBLICBASEURL=${synapseFQDN} - ELEMENTWEB=${elementWebFQDN} - DBNAME=${dbname} - DBHOST=${dbhost} - DBUSER=${dbuser} - DBPASSWORD=${dbpassword} ports: - "8008:8008/tcp" volumes: - ./synapse:/data entrypoint: sh -c "/data/homeserver.yaml.sh && chmod -R 777 /data && /start.py" element: image: vectorim/element-web:latest restart: unless-stopped environment: - SERVERNAME=${homeServerFQDN} - PUBLICBASEURL=${synapseFQDN} - ELEMENTWEB=${elementWebFQDN} volumes: - ./element/config.json.sh:/app/config.json.sh command: sh -c "/app/config.json.sh && nginx -g 'daemon off;'" #entrypoint: /app/config.json.sh ports: - "80:80/tcp"