Replace localhost with DNS entries in docker-compose - fix #91

This commit is contained in:
Denis CLAVIER 2022-03-31 23:02:49 +02:00
parent 04f46615ff
commit 8f1f233794
4 changed files with 34 additions and 23 deletions

View File

@ -35,6 +35,8 @@
"RestrictLinkPreviews": "", "RestrictLinkPreviews": "",
"EnableTesting": false, "EnableTesting": false,
"EnableDeveloper": false, "EnableDeveloper": false,
"DeveloperFlags": "",
"EnableClientPerformanceDebugging": false,
"EnableOpenTracing": false, "EnableOpenTracing": false,
"EnableSecurityFixAlert": true, "EnableSecurityFixAlert": true,
"EnableInsecureOutgoingConnections": false, "EnableInsecureOutgoingConnections": false,
@ -85,6 +87,7 @@
"EnableBotAccountCreation": false, "EnableBotAccountCreation": false,
"EnableSVGs": true, "EnableSVGs": true,
"EnableLatex": true, "EnableLatex": true,
"EnableInlineLatex": true,
"EnableAPIChannelDeletion": false, "EnableAPIChannelDeletion": false,
"EnableLocalMode": false, "EnableLocalMode": false,
"LocalModeSocketLocation": "/var/tmp/mattermost_local.socket", "LocalModeSocketLocation": "/var/tmp/mattermost_local.socket",
@ -95,7 +98,7 @@
"ThreadAutoFollow": true, "ThreadAutoFollow": true,
"CollapsedThreads": "disabled", "CollapsedThreads": "disabled",
"ManagedResourcePaths": "", "ManagedResourcePaths": "",
"EnableReliableWebSockets": false "EnableCustomGroups": true
}, },
"TeamSettings": { "TeamSettings": {
"SiteName": "Mattermost", "SiteName": "Mattermost",
@ -123,8 +126,6 @@
"ClientRequirements": { "ClientRequirements": {
"AndroidLatestVersion": "", "AndroidLatestVersion": "",
"AndroidMinVersion": "", "AndroidMinVersion": "",
"DesktopLatestVersion": "",
"DesktopMinVersion": "",
"IosLatestVersion": "", "IosLatestVersion": "",
"IosMinVersion": "" "IosMinVersion": ""
}, },
@ -141,6 +142,7 @@
"AtRestEncryptKey": "95ps7omhzmhusdfqh5bki5ye4xfd4hgw", "AtRestEncryptKey": "95ps7omhzmhusdfqh5bki5ye4xfd4hgw",
"QueryTimeout": 30, "QueryTimeout": 30,
"DisableDatabaseSearch": false, "DisableDatabaseSearch": false,
"MigrationsStatementTimeoutSeconds": 100000,
"ReplicaLagSettings": [] "ReplicaLagSettings": []
}, },
"LogSettings": { "LogSettings": {
@ -289,8 +291,8 @@
"Id": "123456789abcdef123456789abcdef", "Id": "123456789abcdef123456789abcdef",
"Scope": "", "Scope": "",
"AuthEndpoint": "http://localhost/oauth/authorize", "AuthEndpoint": "http://localhost/oauth/authorize",
"TokenEndpoint": "http://localhost/oauth/token.php", "TokenEndpoint": "http://webserver/oauth/token.php",
"UserAPIEndpoint": "http://localhost/oauth/resource.php", "UserAPIEndpoint": "http://webserver/oauth/resource.php",
"DiscoveryEndpoint": "", "DiscoveryEndpoint": "",
"ButtonText": "", "ButtonText": "",
"ButtonColor": "" "ButtonColor": ""
@ -493,8 +495,10 @@
"DataRetentionSettings": { "DataRetentionSettings": {
"EnableMessageDeletion": false, "EnableMessageDeletion": false,
"EnableFileDeletion": false, "EnableFileDeletion": false,
"EnableBoardsDeletion": false,
"MessageRetentionDays": 365, "MessageRetentionDays": 365,
"FileRetentionDays": 365, "FileRetentionDays": 365,
"BoardsRetentionDays": 365,
"DeletionJobStartTime": "02:00", "DeletionJobStartTime": "02:00",
"BatchSize": 3000 "BatchSize": 3000
}, },
@ -515,7 +519,8 @@
}, },
"JobSettings": { "JobSettings": {
"RunJobs": true, "RunJobs": true,
"RunScheduler": true "RunScheduler": true,
"CleanupJobsThresholdDays": -1
}, },
"PluginSettings": { "PluginSettings": {
"Enable": true, "Enable": true,
@ -529,7 +534,7 @@
"BotUserID": "gawh538krt8w7mj1irqb9k65to" "BotUserID": "gawh538krt8w7mj1irqb9k65to"
}, },
"playbooks": { "playbooks": {
"BotUserID": "cak9zgjpx78x8gbab9w8iftgxc" "BotUserID": "fdmzdn3m4bgu8bhd48etu6dqjr"
} }
}, },
"PluginStates": { "PluginStates": {

View File

@ -19,7 +19,7 @@ services:
LDAP_READONLY_USER_USERNAME: "butler" LDAP_READONLY_USER_USERNAME: "butler"
LDAP_READONLY_USER_PASSWORD: "readonly" LDAP_READONLY_USER_PASSWORD: "readonly"
nginx: webserver:
image: nginx image: nginx
restart: always restart: always
ports: ports:
@ -28,8 +28,8 @@ services:
volumes: volumes:
- ../oauth:/var/www/html/oauth - ../oauth:/var/www/html/oauth
- ./nginx.conf:/etc/nginx/nginx.conf - ./nginx.conf:/etc/nginx/nginx.conf
links: depends_on:
- "php:php" - php
php: php:
build: ../Docker/php-ldap-pgsql build: ../Docker/php-ldap-pgsql
@ -37,7 +37,7 @@ services:
volumes: volumes:
- ../oauth:/var/www/html/oauth - ../oauth:/var/www/html/oauth
environment: environment:
ldap_host: ldap://localhost:389/ ldap_host: ldap://ldap:389/
ldap_port: 389 ldap_port: 389
ldap_version: 3 ldap_version: 3
ldap_search_attribute: uid ldap_search_attribute: uid
@ -45,14 +45,17 @@ services:
ldap_filter: "(objectClass=*)" ldap_filter: "(objectClass=*)"
ldap_bind_dn: "cn=butler,dc=example,dc=com" ldap_bind_dn: "cn=butler,dc=example,dc=com"
ldap_bind_pass: "readonly" ldap_bind_pass: "readonly"
db_host: "127.0.0.1" db_host: "database"
db_port: "5432" db_port: "5432"
db_type: "pgsql" db_type: "pgsql"
db_name: "oauth_db" db_name: "oauth_db"
db_user: "oauth" db_user: "oauth"
db_pass: "oauth_secure-pass" db_pass: "oauth_secure-pass"
depends_on:
- database
- ldap
db: database:
image: postgres:alpine image: postgres:alpine
restart: always restart: always
volumes: volumes:

View File

@ -31,8 +31,8 @@ http {
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=mattermost_cache:10m max_size=3g inactive=120m use_temp_path=off; proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=mattermost_cache:10m max_size=3g inactive=120m use_temp_path=off;
upstream mattermost { upstream mm-svc {
server localhost:8065; server mattermost:8065;
} }
server { server {
@ -65,7 +65,7 @@ http {
proxy_buffers 256 16k; proxy_buffers 256 16k;
proxy_buffer_size 16k; proxy_buffer_size 16k;
proxy_read_timeout 600s; proxy_read_timeout 600s;
proxy_pass http://mattermost; proxy_pass http://mm-svc;
} }
location /oauth/gitlab/ { location /oauth/gitlab/ {
@ -84,7 +84,7 @@ http {
proxy_cache_min_uses 2; proxy_cache_min_uses 2;
proxy_cache_use_stale timeout; proxy_cache_use_stale timeout;
proxy_cache_lock on; proxy_cache_lock on;
proxy_pass http://mattermost; proxy_pass http://mm-svc;
} }
location /oauth/access_token { location /oauth/access_token {
@ -125,7 +125,7 @@ http {
proxy_cache_min_uses 2; proxy_cache_min_uses 2;
proxy_cache_use_stale timeout; proxy_cache_use_stale timeout;
proxy_cache_lock on; proxy_cache_lock on;
proxy_pass http://mattermost; proxy_pass http://mm-svc;
} }
} }

View File

@ -1,6 +1,6 @@
version: '3' version: '3'
services: services:
nginx: webserver:
image: nginx image: nginx
restart: always restart: always
ports: ports:
@ -10,8 +10,8 @@ services:
- ./oauth:/var/www/html/oauth - ./oauth:/var/www/html/oauth
- ./oauth.conf:/etc/nginx/conf.d/oauth.conf:ro - ./oauth.conf:/etc/nginx/conf.d/oauth.conf:ro
- ./certs:/etc/nginx/certs - ./certs:/etc/nginx/certs
links: depends_on:
- "php:php" - php
php: php:
build: ./Docker/php-ldap-pgsql build: ./Docker/php-ldap-pgsql
image: php-ldap-pgsql image: php-ldap-pgsql
@ -27,13 +27,16 @@ services:
ldap_filter: "(objectClass=*)" ldap_filter: "(objectClass=*)"
ldap_bind_dn: "" ldap_bind_dn: ""
ldap_bind_pass: "" ldap_bind_pass: ""
db_host: "127.0.0.1" db_host: "database"
db_port: "5432" db_port: "5432"
db_type: "pgsql" db_type: "pgsql"
db_name: "oauth_db" db_name: "oauth_db"
db_user: "oauth" db_user: "oauth"
db_pass: "oauth_secure-pass" db_pass: "oauth_secure-pass"
db: depends_on:
- database
database:
image: postgres:alpine image: postgres:alpine
restart: always restart: always
volumes: volumes: