forked from MirrorHub/synapse
Provide an example docker compose file
This commit is contained in:
parent
042757feb2
commit
1ba2fe114c
2 changed files with 34 additions and 0 deletions
|
@ -14,4 +14,6 @@ RUN cd /synapse \
|
||||||
|
|
||||||
VOLUME ["/data"]
|
VOLUME ["/data"]
|
||||||
|
|
||||||
|
EXPOSE 8448
|
||||||
|
|
||||||
ENTRYPOINT ["/start.py"]
|
ENTRYPOINT ["/start.py"]
|
||||||
|
|
32
contrib/docker/docker-compose.yml
Normal file
32
contrib/docker/docker-compose.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
# This compose file is compatible with Copose itself, it might need some
|
||||||
|
# adjustments to run properly with stack.
|
||||||
|
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
synapse:
|
||||||
|
image: matrix/synapse
|
||||||
|
# See the readme for a full documentation of the environment settings
|
||||||
|
environment:
|
||||||
|
- SYNAPSE_SERVER_NAME=my.matrix.host
|
||||||
|
- SYNAPSE_DB_PASSWORD=changeme
|
||||||
|
volumes:
|
||||||
|
- ./files:/data
|
||||||
|
# One may either expose ports directly
|
||||||
|
ports:
|
||||||
|
- 8448:8448/tcp
|
||||||
|
# ... or use a reverse proxy, here is an example for traefik
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.frontend.rule=Host:my.matrix.Host
|
||||||
|
- traefik.port=8448
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: postgres:latest
|
||||||
|
# Change that password, of course!
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=matrix
|
||||||
|
- POSTGRES_PASSWORD=changeme
|
||||||
|
volumes:
|
||||||
|
- ./schemas:/var/lib/postgres
|
Loading…
Reference in a new issue