-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added pgAdmin container - Edited default element config - Edited env vars
- Loading branch information
Showing
6 changed files
with
82 additions
and
137 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,10 @@ SYNAPSE_SERVER_NAME=localhost | |
SYNAPSE_REPORT_STATS=no | ||
SYNAPSE_NO_TLS=0 | ||
SYNAPSE_REGISTRATION_SHARED_SECRET=7Er4MQmOOKKBs2UQEAWpY07EmyQtegd7 | ||
SYNAPSE_HTTP_PORT=8008 | ||
POSTGRES_HOST=postgres | ||
|
||
POSTGRES_DB=synapse | ||
POSTGRES_USER=synapse | ||
POSTGRES_PASSWORD=sup3rs3cret | ||
DOCKER_SYNAPSE_PORT_ON_HOST=8008 | ||
DOCKER_SYNAPSE_TLS_PORT_ON_HOST=8448 | ||
DOCKER_ELEMENT_PORT_ON_HOST=8080 | ||
DOCKER_SYNAPSE_ADMIN_PORT_ON_HOST=8081 | ||
|
||
PGADMIN_DEFAULT_EMAIL=[email protected] | ||
PGADMIN_DEFAULT_PASSWORD=changeme |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
docker-compose.override.yml | ||
.env | ||
data/ | ||
.data/ |
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,63 @@ | ||
version: '3.8' | ||
version: '3.9' | ||
|
||
services: | ||
synapse: | ||
# first run: docker compose run synapse generate && docker compose down && docker compose --profile element up -d | ||
container_name: synapse | ||
image: matrixdotorg/synapse:latest | ||
restart: unless-stopped | ||
hostname: ${SYNAPSE_SERVER_NAME} | ||
ports: | ||
- '${DOCKER_SYNAPSE_PORT_ON_HOST:-8008}:${SYNAPSE_HTTP_PORT:-8008}' | ||
- '${DOCKER_SYNAPSE_TLS_PORT_ON_HOST:-8448}:8448' | ||
volumes: [ './data/synapse:/data' ] | ||
networks: [ 'web', 'backend' ] | ||
depends_on: [ 'postgres' ] | ||
expose: [ '8008', '8448' ] | ||
volumes: [ './.data/synapse:/data' ] | ||
networks: [ 'backend' ] | ||
depends_on: [ 'db' ] | ||
environment: | ||
# all env variables: https://github.com/matrix-org/synapse/blob/develop/docker/conf/homeserver.yaml | ||
- SYNAPSE_SERVER_NAME=${SYNAPSE_SERVER_NAME} | ||
- SYNAPSE_REPORT_STATS=${SYNAPSE_REPORT_STATS:-no} | ||
- SYNAPSE_HTTP_PORT=${SYNAPSE_HTTP_PORT:-8008} | ||
- SYNAPSE_NO_TLS=${SYNAPSE_NO_TLS:-0} | ||
- SYNAPSE_REGISTRATION_SHARED_SECRET=${SYNAPSE_REGISTRATION_SHARED_SECRET} | ||
- POSTGRES_HOST=${POSTGRES_HOST:-postgres} | ||
- POSTGRES_DB=${POSTGRES_DB:-synapse} | ||
- POSTGRES_USER=${POSTGRES_USER:-synapse} | ||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-sup3rs3cret} | ||
- SYNAPSE_SERVER_NAME | ||
- SYNAPSE_REPORT_STATS | ||
- SYNAPSE_NO_TLS | ||
- SYNAPSE_REGISTRATION_SHARED_SECRET | ||
- POSTGRES_DB | ||
- POSTGRES_USER | ||
- POSTGRES_PASSWORD | ||
|
||
postgres: | ||
container_name: synapse_postgres | ||
db: | ||
image: postgres:alpine | ||
restart: unless-stopped | ||
volumes: [ './data/postgres:/var/lib/postgresql/data' ] | ||
expose: [ '5432' ] | ||
volumes: [ './.data/db:/var/lib/postgresql/data' ] | ||
networks: [ 'backend' ] | ||
environment: | ||
- POSTGRES_DB=${POSTGRES_DB:-synapse} | ||
- POSTGRES_USER=${POSTGRES_USER:-synapse} | ||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-sup3rs3cret} | ||
- POSTGRES_DB | ||
- POSTGRES_USER | ||
- POSTGRES_PASSWORD | ||
|
||
element: | ||
container_name: synapse_element | ||
image: vectorim/element-web:latest | ||
restart: unless-stopped | ||
ports: [ '${DOCKER_ELEMENT_PORT_ON_HOST:-8080}:80' ] | ||
expose: [ '80' ] | ||
volumes: [ './element-config.json:/app/config.json:ro' ] | ||
networks: [ 'web' ] | ||
profiles: [ 'element' ] | ||
|
||
admin: | ||
container_name: synapse_admin | ||
synadmin: | ||
image: awesometechnologies/synapse-admin:latest | ||
restart: unless-stopped | ||
ports: [ '${DOCKER_SYNAPSE_ADMIN_PORT_ON_HOST:-8081}:80' ] | ||
expose: [ '80' ] | ||
networks: [ 'web' ] | ||
profiles: [ 'tools' ] | ||
|
||
pgadmin: | ||
image: dpage/pgadmin4 | ||
restart: unless-stopped | ||
expose: [ '80', '443' ] | ||
volumes: [ './.data/pgadmin:/var/lib/pgadmin' ] | ||
networks: [ 'backend' ] | ||
profiles: [ 'tools' ] | ||
depends_on: [ 'db' ] | ||
environment: | ||
# all env variables: https://www.pgadmin.org/docs/pgadmin4/development/container_deployment.html | ||
- PGADMIN_DEFAULT_EMAIL | ||
- PGADMIN_DEFAULT_PASSWORD | ||
|
||
networks: | ||
web: | ||
backend: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,38 @@ | ||
{ | ||
"default_server_config": { | ||
"m.homeserver": { | ||
"base_url": "http://localhost:8008" | ||
}, | ||
"m.identity_server": { | ||
"base_url": "http://localhost/identity-server" | ||
} | ||
}, | ||
"disable_custom_urls": false, | ||
"disable_guests": false, | ||
"disable_login_language_selector": false, | ||
"disable_3pid_login": true, | ||
"brand": "Element", | ||
"show_labs_settings": false, | ||
"features": {}, | ||
"default_federate": true, | ||
"default_theme": "dark", | ||
"setting_defaults": { | ||
"breadcrumbs": true | ||
}, | ||
"room_directory": { | ||
"servers": [ | ||
"matrix.org" | ||
] | ||
}, | ||
"enable_presence_by_hs_url": { | ||
"https://matrix.org": false, | ||
"https://matrix-client.matrix.org": false | ||
}, | ||
"integrations_ui_url": "https://localhost/integrations-server", | ||
"integrations_rest_url": "https://localhost/integrations-server", | ||
"integrations_widgets_urls": [ | ||
"https://localhost/integrations-server" | ||
], | ||
"integrations_jitsi_widget_url": "https://localhost/integrations-server", | ||
"jitsi": { | ||
"preferred_domain": "https://localhost/jitsi" | ||
} | ||
"default_server_config": { | ||
"m.homeserver": { | ||
"base_url": "http://localhost:8008", | ||
"server_name": "My homeserver" | ||
}, | ||
"m.identity_server": { | ||
"base_url": "https://vector.im" | ||
} | ||
}, | ||
"disable_custom_urls": true, | ||
"brand": "Element", | ||
"integrations_ui_url": "https://scalar.vector.im/", | ||
"integrations_rest_url": "https://scalar.vector.im/api", | ||
"integrations_widgets_urls": [ | ||
"https://scalar.vector.im/_matrix/integrations/v1", | ||
"https://scalar.vector.im/api", | ||
"https://scalar-staging.vector.im/_matrix/integrations/v1", | ||
"https://scalar-staging.vector.im/api", | ||
"https://scalar-staging.riot.im/scalar/api" | ||
], | ||
"show_labs_settings": true, | ||
"default_federate": false, | ||
"default_theme": "dark", | ||
"enable_presence_by_hs_url": { | ||
"https://matrix.org": false, | ||
"https://matrix-client.matrix.org": false | ||
}, | ||
"jitsi": { | ||
"preferred_domain": "meet.jit.si" | ||
}, | ||
"element_call": { | ||
"url": "https://call.element.io", | ||
"participant_limit": 8, | ||
"brand": "Element Call" | ||
}, | ||
"map_style_url": "https://api.maptiler.com/maps/streets/style.json?key=fU3vlMsMn4Jb6dnEIFsx" | ||
} |