0.1.0 rc, still testing that one
This commit is contained in:
parent
64b0e9171d
commit
9a716f7303
12
.env.sample
12
.env.sample
@ -14,15 +14,3 @@ SECRET_POSTGRES_PASSWORD_VERSION=v1
|
|||||||
## A list of these tz database names can be looked up at Wikipedia
|
## A list of these tz database names can be looked up at Wikipedia
|
||||||
## https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
## https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
||||||
TZ=UTC
|
TZ=UTC
|
||||||
|
|
||||||
## Make Mattermost container readonly. This interferes with the regeneration of root.html inside the container. Only use
|
|
||||||
## it if you know what you're doing.
|
|
||||||
## See https://github.com/mattermost/docker/issues/18
|
|
||||||
MATTERMOST_CONTAINER_READONLY=false
|
|
||||||
|
|
||||||
## Additional configuration settings for Mattermost. Documentation on the variables and the settings itself can be found at
|
|
||||||
## https://docs.mattermost.com/administration/config-settings.html
|
|
||||||
## Keep in mind that variables set here will take precedence over the same setting in config.json. This includes
|
|
||||||
## the system console as well and settings set with env variables will be greyed out.
|
|
||||||
|
|
||||||
|
|
||||||
|
65
compose.yml
65
compose.yml
@ -1,50 +1,19 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
|
||||||
image: postgres:13-alpine
|
|
||||||
security_opt:
|
|
||||||
- no-new-privileges:true
|
|
||||||
tmpfs:
|
|
||||||
- /tmp
|
|
||||||
- /var/run/postgresql
|
|
||||||
volumes:
|
|
||||||
- postgres_data:/var/lib/postgresql/data
|
|
||||||
environment:
|
|
||||||
# timezone inside container
|
|
||||||
- TZ
|
|
||||||
|
|
||||||
# necessary Postgres options/variables
|
|
||||||
- POSTGRES_USER=mattermost
|
|
||||||
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
|
|
||||||
- POSTGRES_DB=mattermost
|
|
||||||
secrets:
|
|
||||||
- postgres_password
|
|
||||||
networks:
|
|
||||||
- internal
|
|
||||||
|
|
||||||
app:
|
app:
|
||||||
image: mattermost/mattermost-team-edition:5.39
|
image: mattermost/mattermost-team-edition:7.9.4
|
||||||
security_opt:
|
environment:
|
||||||
- no-new-privileges:true
|
- TZ
|
||||||
read_only: ${MATTERMOST_CONTAINER_READONLY}
|
- MM_SQLSETTINGS_DRIVERNAME=postgres
|
||||||
tmpfs:
|
- MM_SERVICESETTINGS_SITEURL=https://${DOMAIN}
|
||||||
- /tmp
|
|
||||||
volumes:
|
volumes:
|
||||||
- mattermost_config:/mattermost/config:rw
|
- mattermost_config:/mattermost/config:rw
|
||||||
- mattermost_data:/mattermost/data:rw
|
- mattermost_data:/mattermost/data:rw
|
||||||
- mattermost_logs:/mattermost/logs:rw
|
- mattermost_logs:/mattermost/logs:rw
|
||||||
- mattermost_plugins:/mattermost/plugins:rw
|
- mattermost_plugins:/mattermost/plugins:rw
|
||||||
- mattermost_client_plugins:/mattermost/client/plugins:rw
|
- mattermost_client_plugins:/mattermost/client/plugins:rw
|
||||||
environment:
|
- mattermost_certs:/etc/ssl/certs:ro
|
||||||
# timezone inside container
|
|
||||||
- TZ
|
|
||||||
|
|
||||||
# necessary Mattermost options/variables (see env.sample)
|
|
||||||
- MM_SQLSETTINGS_DRIVERNAME=postgres
|
|
||||||
|
|
||||||
# additional settings
|
|
||||||
- MM_SERVICESETTINGS_SITEURL=https://${DOMAIN}
|
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
- internal
|
- internal
|
||||||
@ -59,6 +28,7 @@ services:
|
|||||||
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
||||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
||||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
||||||
|
- "coop-cloud.${STACK_NAME}.version=0.1.0+7.9.4"
|
||||||
configs:
|
configs:
|
||||||
- source: abra_mattermost_entrypoint
|
- source: abra_mattermost_entrypoint
|
||||||
target: /abra-mattermost-entrypoint.sh
|
target: /abra-mattermost-entrypoint.sh
|
||||||
@ -67,6 +37,21 @@ services:
|
|||||||
- postgres_password
|
- postgres_password
|
||||||
entrypoint: /abra-mattermost-entrypoint.sh
|
entrypoint: /abra-mattermost-entrypoint.sh
|
||||||
|
|
||||||
|
postgres:
|
||||||
|
image: postgres:15-alpine
|
||||||
|
volumes:
|
||||||
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
- TZ
|
||||||
|
- POSTGRES_USER=mattermost
|
||||||
|
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
|
||||||
|
- POSTGRES_DB=mattermost
|
||||||
|
secrets:
|
||||||
|
- postgres_password
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
postgres_password:
|
postgres_password:
|
||||||
external: true
|
external: true
|
||||||
@ -74,8 +59,8 @@ secrets:
|
|||||||
|
|
||||||
configs:
|
configs:
|
||||||
abra_mattermost_entrypoint:
|
abra_mattermost_entrypoint:
|
||||||
name: abra_mattermost_entrypoint
|
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_VERSION}
|
||||||
file: ./abra-mattermost-entrypoint.sh
|
file: ./entrypoint.sh
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
@ -85,8 +70,8 @@ networks:
|
|||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
mattermost_config:
|
mattermost_config:
|
||||||
|
mattermost_certs:
|
||||||
mattermost_data:
|
mattermost_data:
|
||||||
mattermost_logs:
|
mattermost_logs:
|
||||||
mattermost_plugins:
|
mattermost_plugins:
|
||||||
mattermost_client_plugins:
|
mattermost_client_plugins:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user