fix: first
This commit is contained in:
parent
7fa6648d6c
commit
e7f3f387ce
|
@ -43,10 +43,10 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- mattermost_network
|
- mattermost_network
|
||||||
volumes:
|
volumes:
|
||||||
- mattermost_data:/mattermost/data
|
- ./mattermost_data:/mattermost/data
|
||||||
- mattermost_config:/mattermost/config
|
- ./mattermost_config:/mattermost/config
|
||||||
- mattermost_logs:/mattermost/logs
|
- ./mattermost_logs:/mattermost/logs
|
||||||
- mattermost_plugins:/mattermost/plugins
|
- ./mattermost_plugins:/mattermost/plugins
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8065/api/v4/system/ping"]
|
test: ["CMD", "curl", "-f", "http://localhost:8065/api/v4/system/ping"]
|
||||||
|
@ -65,7 +65,7 @@ services:
|
||||||
POSTGRES_PASSWORD: mattermost_password
|
POSTGRES_PASSWORD: mattermost_password
|
||||||
POSTGRES_INITDB_ARGS: "--encoding=UTF8 --lc-collate=C --lc-ctype=C"
|
POSTGRES_INITDB_ARGS: "--encoding=UTF8 --lc-collate=C --lc-ctype=C"
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- ./postgres_data:/var/lib/postgresql/data
|
||||||
networks:
|
networks:
|
||||||
- mattermost_network
|
- mattermost_network
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -80,9 +80,5 @@ networks:
|
||||||
mattermost_network:
|
mattermost_network:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
||||||
volumes:
|
# 使用绑定挂载,数据存储在当前目录下
|
||||||
mattermost_data:
|
# volumes 部分已删除,因为使用 ./目录 的绑定挂载
|
||||||
mattermost_config:
|
|
||||||
mattermost_logs:
|
|
||||||
mattermost_plugins:
|
|
||||||
postgres_data:
|
|
||||||
|
|
Loading…
Reference in New Issue