blob: 88b2a5262f930627bb826d254436115b8936dea0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Inherit from the official Synapse docker image
FROM matrixdotorg/synapse
# Install deps
RUN apt-get update
RUN apt-get install -y supervisor redis nginx
# A script to read environment variables and create the necessary
# files to run the desired worker configuration
COPY ./docker/create_worker_config_files.py /create_worker_config_files.py
RUN /create_worker_config_files.py
# Create a volume for logging. The official Synapse docker image
# only logs to console, however this is inconvenient for multi-process
# containers.
VOLUME ["/logs"]
# Expose Synapse client, ACME challenge and federation ports
EXPOSE 8008/tcp 8009/tcp 8448/tcp
# Start supervisord
COPY ./docker/worker_conf/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ENTRYPOINT ["/usr/bin/supervisord"]
# TODO: Healthcheck? Can we ask supervisord?
|