Update docker-compose file to v2 format (#62)
* Added docker-compose file v2 format and renamed old one to docker-compose-v1.yml
This commit is contained in:
parent
782129450e
commit
ce53a32e95
39
docker-compose-v1.yml
Normal file
39
docker-compose-v1.yml
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
db:
|
||||||
|
build: db
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./volumes/db/var/lib/postgresql/data:/var/lib/postgresql/data
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
# uncomment the following to enable backup
|
||||||
|
environment:
|
||||||
|
- MM_USERNAME=mmuser
|
||||||
|
- MM_PASSWORD=mmuser_password
|
||||||
|
- MM_DBNAME=mattermost
|
||||||
|
# - AWS_ACCESS_KEY_ID=XXXX
|
||||||
|
# - AWS_SECRET_ACCESS_KEY=XXXX
|
||||||
|
# - WALE_S3_PREFIX=s3://BUCKET_NAME/PATH
|
||||||
|
# - AWS_REGION=us-east-1
|
||||||
|
app:
|
||||||
|
build: app
|
||||||
|
links:
|
||||||
|
- db:db
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./volumes/app/mattermost/config:/mattermost/config:rw
|
||||||
|
- ./volumes/app/mattermost/data:/mattermost/data:rw
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
web:
|
||||||
|
build: web
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
|
links:
|
||||||
|
- app:app
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
# This directory must have cert files
|
||||||
|
- ./volumes/web/cert:/cert:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
environment:
|
||||||
|
- MATTERMOST_ENABLE_SSL=false
|
||||||
|
- PLATFORM_PORT_80_TCP_PORT=80
|
@ -1,4 +1,8 @@
|
|||||||
db:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
db:
|
||||||
build: db
|
build: db
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
@ -13,22 +17,20 @@ db:
|
|||||||
# - AWS_SECRET_ACCESS_KEY=XXXX
|
# - AWS_SECRET_ACCESS_KEY=XXXX
|
||||||
# - WALE_S3_PREFIX=s3://BUCKET_NAME/PATH
|
# - WALE_S3_PREFIX=s3://BUCKET_NAME/PATH
|
||||||
# - AWS_REGION=us-east-1
|
# - AWS_REGION=us-east-1
|
||||||
app:
|
|
||||||
|
app:
|
||||||
build: app
|
build: app
|
||||||
links:
|
|
||||||
- db:db
|
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./volumes/app/mattermost/config:/mattermost/config:rw
|
- ./volumes/app/mattermost/config:/mattermost/config:rw
|
||||||
- ./volumes/app/mattermost/data:/mattermost/data:rw
|
- ./volumes/app/mattermost/data:/mattermost/data:rw
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
web:
|
|
||||||
|
web:
|
||||||
build: web
|
build: web
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
links:
|
|
||||||
- app:app
|
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
# This directory must have cert files
|
# This directory must have cert files
|
||||||
|
Reference in New Issue
Block a user