|
1 |
| -version: '2' |
| 1 | +version: "2" |
2 | 2 | services:
|
3 | 3 | database:
|
4 |
| - image: 'zulip/zulip-postgresql:10' |
| 4 | + image: "zulip/zulip-postgresql:10" |
5 | 5 | environment:
|
6 |
| - POSTGRES_DB: 'zulip' |
7 |
| - POSTGRES_USER: 'zulip' |
| 6 | + POSTGRES_DB: "zulip" |
| 7 | + POSTGRES_USER: "zulip" |
8 | 8 | # Note that you need to do a manual `ALTER ROLE` query if you
|
9 | 9 | # change this on a system after booting the postgres container
|
10 | 10 | # the first time on a host. Instructions are available in README.md.
|
11 |
| - POSTGRES_PASSWORD: 'REPLACE_WITH_SECURE_POSTGRES_PASSWORD' |
| 11 | + POSTGRES_PASSWORD: "REPLACE_WITH_SECURE_POSTGRES_PASSWORD" |
12 | 12 | volumes:
|
13 |
| - - '/opt/docker/zulip/postgresql/data:/var/lib/postgresql/data:rw' |
| 13 | + - "/opt/docker/zulip/postgresql/data:/var/lib/postgresql/data:rw" |
14 | 14 | memcached:
|
15 |
| - image: 'memcached:alpine' |
| 15 | + image: "memcached:alpine" |
16 | 16 | command:
|
17 |
| - - 'sh' |
18 |
| - - '-euc' |
| 17 | + - "sh" |
| 18 | + - "-euc" |
19 | 19 | - |
|
20 | 20 | echo 'mech_list: plain' > "$$SASL_CONF_PATH"
|
21 | 21 | echo "zulip@$$HOSTNAME:$$MEMCACHED_PASSWORD" > "$$MEMCACHED_SASL_PWDB"
|
22 | 22 | echo "zulip@localhost:$$MEMCACHED_PASSWORD" >> "$$MEMCACHED_SASL_PWDB"
|
23 | 23 | exec memcached -S
|
24 | 24 | environment:
|
25 |
| - SASL_CONF_PATH: '/home/memcache/memcached.conf' |
26 |
| - MEMCACHED_SASL_PWDB: '/home/memcache/memcached-sasl-db' |
27 |
| - MEMCACHED_PASSWORD: 'REPLACE_WITH_SECURE_MEMCACHED_PASSWORD' |
| 25 | + SASL_CONF_PATH: "/home/memcache/memcached.conf" |
| 26 | + MEMCACHED_SASL_PWDB: "/home/memcache/memcached-sasl-db" |
| 27 | + MEMCACHED_PASSWORD: "REPLACE_WITH_SECURE_MEMCACHED_PASSWORD" |
28 | 28 | restart: always
|
29 | 29 | rabbitmq:
|
30 |
| - image: 'rabbitmq:3.7.7' |
| 30 | + image: "rabbitmq:3.7.7" |
31 | 31 | restart: always
|
32 | 32 | environment:
|
33 |
| - RABBITMQ_DEFAULT_USER: 'zulip' |
34 |
| - RABBITMQ_DEFAULT_PASS: 'REPLACE_WITH_SECURE_RABBITMQ_PASSWORD' |
| 33 | + RABBITMQ_DEFAULT_USER: "zulip" |
| 34 | + RABBITMQ_DEFAULT_PASS: "REPLACE_WITH_SECURE_RABBITMQ_PASSWORD" |
35 | 35 | volumes:
|
36 |
| - - '/opt/docker/zulip/rabbitmq:/var/lib/rabbitmq:rw' |
| 36 | + - "/opt/docker/zulip/rabbitmq:/var/lib/rabbitmq:rw" |
37 | 37 | redis:
|
38 |
| - image: 'redis:alpine' |
| 38 | + image: "redis:alpine" |
39 | 39 | command:
|
40 |
| - - 'sh' |
41 |
| - - '-euc' |
| 40 | + - "sh" |
| 41 | + - "-euc" |
42 | 42 | - |
|
43 | 43 | echo "requirepass '$$REDIS_PASSWORD'" > /etc/redis.conf
|
44 | 44 | exec redis-server /etc/redis.conf
|
45 | 45 | environment:
|
46 |
| - REDIS_PASSWORD: 'REPLACE_WITH_SECURE_REDIS_PASSWORD' |
| 46 | + REDIS_PASSWORD: "REPLACE_WITH_SECURE_REDIS_PASSWORD" |
47 | 47 | volumes:
|
48 |
| - - '/opt/docker/zulip/redis:/data:rw' |
| 48 | + - "/opt/docker/zulip/redis:/data:rw" |
49 | 49 | zulip:
|
50 |
| - image: 'zulip/docker-zulip:4.3-0' |
| 50 | + image: "zulip/docker-zulip:4.4-0" |
51 | 51 | build:
|
52 | 52 | context: .
|
53 | 53 | args:
|
54 | 54 | # Change these if you want to build zulip from a different repo/branch
|
55 | 55 | ZULIP_GIT_URL: https://github.com/zulip/zulip.git
|
56 |
| - ZULIP_GIT_REF: '4.3' |
| 56 | + ZULIP_GIT_REF: "4.4" |
57 | 57 | # Set this up if you plan to use your own CA certificate bundle for building
|
58 | 58 | # CUSTOM_CA_CERTIFICATES:
|
59 | 59 | ports:
|
60 |
| - - '80:80' |
61 |
| - - '443:443' |
| 60 | + - "80:80" |
| 61 | + - "443:443" |
62 | 62 | environment:
|
63 |
| - DB_HOST: 'database' |
64 |
| - DB_HOST_PORT: '5432' |
65 |
| - DB_USER: 'zulip' |
66 |
| - SSL_CERTIFICATE_GENERATION: 'self-signed' |
67 |
| - SETTING_MEMCACHED_LOCATION: 'memcached:11211' |
68 |
| - SETTING_RABBITMQ_HOST: 'rabbitmq' |
69 |
| - SETTING_REDIS_HOST: 'redis' |
70 |
| - SECRETS_email_password: '123456789' |
| 63 | + DB_HOST: "database" |
| 64 | + DB_HOST_PORT: "5432" |
| 65 | + DB_USER: "zulip" |
| 66 | + SSL_CERTIFICATE_GENERATION: "self-signed" |
| 67 | + SETTING_MEMCACHED_LOCATION: "memcached:11211" |
| 68 | + SETTING_RABBITMQ_HOST: "rabbitmq" |
| 69 | + SETTING_REDIS_HOST: "redis" |
| 70 | + SECRETS_email_password: "123456789" |
71 | 71 | # These should match RABBITMQ_DEFAULT_PASS, POSTGRES_PASSWORD,
|
72 | 72 | # MEMCACHED_PASSWORD, and REDIS_PASSWORD above.
|
73 |
| - SECRETS_rabbitmq_password: 'REPLACE_WITH_SECURE_RABBITMQ_PASSWORD' |
74 |
| - SECRETS_postgres_password: 'REPLACE_WITH_SECURE_POSTGRES_PASSWORD' |
75 |
| - SECRETS_memcached_password: 'REPLACE_WITH_SECURE_MEMCACHED_PASSWORD' |
76 |
| - SECRETS_redis_password: 'REPLACE_WITH_SECURE_REDIS_PASSWORD' |
77 |
| - SECRETS_secret_key: 'REPLACE_WITH_SECURE_SECRET_KEY' |
78 |
| - SETTING_EXTERNAL_HOST: 'localhost.localdomain' |
79 |
| - SETTING_ZULIP_ADMINISTRATOR: '[email protected]' |
80 |
| - SETTING_EMAIL_HOST: '' # e.g. smtp.example.com |
81 |
| - SETTING_EMAIL_HOST_USER: '[email protected]' |
82 |
| - SETTING_EMAIL_PORT: '587' |
| 73 | + SECRETS_rabbitmq_password: "REPLACE_WITH_SECURE_RABBITMQ_PASSWORD" |
| 74 | + SECRETS_postgres_password: "REPLACE_WITH_SECURE_POSTGRES_PASSWORD" |
| 75 | + SECRETS_memcached_password: "REPLACE_WITH_SECURE_MEMCACHED_PASSWORD" |
| 76 | + SECRETS_redis_password: "REPLACE_WITH_SECURE_REDIS_PASSWORD" |
| 77 | + SECRETS_secret_key: "REPLACE_WITH_SECURE_SECRET_KEY" |
| 78 | + SETTING_EXTERNAL_HOST: "localhost.localdomain" |
| 79 | + SETTING_ZULIP_ADMINISTRATOR: "[email protected]" |
| 80 | + SETTING_EMAIL_HOST: "" # e.g. smtp.example.com |
| 81 | + SETTING_EMAIL_HOST_USER: "[email protected]" |
| 82 | + SETTING_EMAIL_PORT: "587" |
83 | 83 | # It seems that the email server needs to use ssl or tls and can't be used without it
|
84 |
| - SETTING_EMAIL_USE_SSL: 'False' |
85 |
| - SETTING_EMAIL_USE_TLS: 'True' |
86 |
| - ZULIP_AUTH_BACKENDS: 'EmailAuthBackend' |
| 84 | + SETTING_EMAIL_USE_SSL: "False" |
| 85 | + SETTING_EMAIL_USE_TLS: "True" |
| 86 | + ZULIP_AUTH_BACKENDS: "EmailAuthBackend" |
87 | 87 | # Uncomment this when configuring the mobile push notifications service
|
88 | 88 | # SETTING_PUSH_NOTIFICATION_BOUNCER_URL: 'https://push.zulipchat.com'
|
89 | 89 | volumes:
|
90 |
| - - '/opt/docker/zulip/zulip:/data:rw' |
| 90 | + - "/opt/docker/zulip/zulip:/data:rw" |
91 | 91 | ulimits:
|
92 | 92 | nofile:
|
93 | 93 | soft: 1000000
|
|
0 commit comments