 82f13b1e4c
			
		
	
	
		82f13b1e4c
		
	
	
	
	
		
			
			Since the only difference is mattermost package and we don't want to maintain two difference branches, just moved the enterprise version into a alternative dockerfile
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| version: "2"
 | |
| 
 | |
| services:
 | |
| 
 | |
|   db:
 | |
|     build: db
 | |
|     restart: unless-stopped
 | |
|     volumes:
 | |
|       - ./volumes/db/var/lib/postgresql/data:/var/lib/postgresql/data
 | |
|       - /etc/localtime:/etc/localtime:ro
 | |
|     environment:
 | |
|       - POSTGRES_USER=mmuser
 | |
|       - POSTGRES_PASSWORD=mmuser_password
 | |
|       - POSTGRES_DB=mattermost
 | |
|     # uncomment the following to enable backup
 | |
|     #  - AWS_ACCESS_KEY_ID=XXXX
 | |
|     #  - AWS_SECRET_ACCESS_KEY=XXXX
 | |
|     #  - WALE_S3_PREFIX=s3://BUCKET_NAME/PATH
 | |
|     #  - AWS_REGION=us-east-1
 | |
|     #  in case your config is not in default location
 | |
|     #  - MM_CONFIG=/mattermost/config/config.jso
 | |
| 
 | |
|   app:
 | |
|     build:
 | |
|       context: app
 | |
|       # comment out for team edition
 | |
|       dockerfile: Dockerfile-enterprise
 | |
|     restart: unless-stopped
 | |
|     volumes:
 | |
|       - ./volumes/app/mattermost/config:/mattermost/config:rw
 | |
|       - ./volumes/app/mattermost/data:/mattermost/data:rw
 | |
|       - ./volumes/app/mattermost/logs:/mattermost/logs:rw
 | |
|       - /etc/localtime:/etc/localtime:ro
 | |
|     environment:
 | |
|       # set same as db credentials and dbname
 | |
|       - MM_USERNAME=mmuser
 | |
|       - MM_PASSWORD=mmuser_password
 | |
|       - MM_DBNAME=mattermost
 | |
|     depends_on:
 | |
|       - db
 | |
| 
 | |
|   web:
 | |
|     build: web
 | |
|     ports:
 | |
|       - "80:80"
 | |
|       - "443:443"
 | |
|     restart: unless-stopped
 | |
|     volumes:
 | |
|       # This directory must have cert files
 | |
|       - ./volumes/web/cert:/cert:ro
 | |
|       - /etc/localtime:/etc/localtime:ro
 | |
|     depends_on:
 | |
|       - app
 |