Skip to content

Instantly share code, notes, and snippets.

@koenhendriks
Created October 26, 2021 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koenhendriks/30afb9cf5843decafc371ceb101ecd49 to your computer and use it in GitHub Desktop.
Save koenhendriks/30afb9cf5843decafc371ceb101ecd49 to your computer and use it in GitHub Desktop.
Sloppy Matrix json export
{
"project": "matrix-chat",
"services": [
{
"id": "matrix",
"apps": [
{
"id": "synapse-server",
"image": "matrixdotorg/synapse",
"cmd": "./start.py generate && ./start.py run",
"instances": 0,
"mem": 512,
"domain": {
"uri": "matrix.koenenjoke.nl"
},
"ssl": true,
"port_mappings": [
{
"container_port": 8008
}
],
"env": {
"SYNAPSE_SERVER_NAME": "sloppy-matrix-synapse",
"SYNAPSE_REPORT_STATS": "yes",
"SYNAPSE_HTTP_PORT": "8008",
"SYNAPSE_CONFIG_DIR": "/data",
"SYNAPSE_DATA_DIR": "/data",
"UID": "991",
"GID": "991",
"POSTGRES_PASSWORD": "matrix-db-secret",
"POSTGRES_USER": "synapse",
"POSTGRES_DB": "synapse",
"POSTGRES_HOST": "postgres.matrix.matrix-chat"
},
"volumes": [
{
"container_path": "/data",
"size": "8GB"
}
],
"health_checks": [
],
"dependencies": [
"postgres"
],
"logging": null
},
{
"id": "postgres",
"image": "postgres:alpine",
"instances": 1,
"mem": 512,
"ssl": false,
"env": {
"POSTGRES_PASSWORD": "matrix-db-secret",
"POSTGRES_USER": "synapse",
"POSTGRES_DB": "synapse"
},
"volumes": [
{
"container_path": "/var/lib/postgresql/data",
"size": "8GB"
}
],
"health_checks": [
],
"logging": null
}
]
},
{
"id": "web-client",
"apps": [
{
"id": "cinny",
"image": "ajbura/cinny:latest",
"instances": 0,
"mem": 256,
"domain": {
"uri": "client.koenenjoke.nl"
},
"ssl": true,
"port_mappings": [
{
"container_port": 80
}
],
"volumes": [
{
"container_path": "/app",
"size": "8GB"
},
{
"container_path": "/etc/nginx",
"size": "8GB"
}
],
"health_checks": [
],
"dependencies": [
"../matrix/synapse-server"
],
"logging": null
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment