Last active
June 5, 2023 05:28
-
-
Save darmawan01/bea79b7ef8d155e0f9eefe8dd1b43807 to your computer and use it in GitHub Desktop.
Matrix Synapse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
networks: | |
synapse: | |
driver: bridge | |
services: | |
certbot: | |
image: certbot/certbot | |
command: certonly --webroot --webroot-path=/var/www/html --email [email protected] --agree-tos --no-eff-email -d my-domain.com | |
volumes: | |
- ./certbot/conf:/etc/letsencrypt | |
- ./certbot/www:/var/www/html | |
networks: | |
- synapse | |
nginx: | |
image: nginx | |
ports: | |
- 80:80 | |
- 443:443 | |
volumes: | |
- ./nginx/conf.d:/etc/nginx/conf.d | |
- ./certbot/conf:/etc/letsencrypt | |
- ./certbot/www:/var/www/html | |
networks: | |
- synapse | |
synapse-generate: | |
image: matrixdotorg/synapse:latest | |
command: generate | |
environment: | |
SYNAPSE_SERVER_NAME: 'my.matrix.host' | |
SYNAPSE_REPORT_STATS: 'yes' | |
volumes: | |
- ./synapse-data:/data | |
networks: | |
- synapse | |
synapse: | |
image: matrixdotorg/synapse:latest | |
restart: always | |
volumes: | |
- ./synapse-data:/data | |
ports: | |
- 8008:8008 | |
depends_on: | |
- synapse-generate | |
networks: | |
- synapse | |
volumes: | |
synapse-data: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NGINX Config
Put in ./nginx/conf.d/default.confg