| 
									
										
										
										
											2023-06-12 19:58:59 +00:00
										 |  |  | version: "3.7"
 | 
					
						
							| 
									
										
										
										
											2023-03-22 18:26:10 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | services:
 | 
					
						
							|  |  |  |   mixpost:
 | 
					
						
							| 
									
										
										
										
											2023-12-06 10:09:23 +00:00
										 |  |  |     image: inovector/mixpost:v1.4.0
 | 
					
						
							| 
									
										
										
										
											2023-03-22 18:26:10 +00:00
										 |  |  |     container_name: mixpost
 | 
					
						
							|  |  |  |     environment:
 | 
					
						
							|  |  |  |       - APP_NAME='Mixpost'
 | 
					
						
							| 
									
										
										
										
											2023-03-22 19:08:59 +00:00
										 |  |  |       - APP_KEY='${MIXPOST_APP_KEY}'
 | 
					
						
							| 
									
										
										
										
											2023-04-28 18:55:59 +00:00
										 |  |  |       - APP_URL='${APP_PROTOCOL:-http}://${APP_DOMAIN}'
 | 
					
						
							| 
									
										
										
										
											2023-03-22 18:32:28 +00:00
										 |  |  |       - DB_HOST=mixpost-mysql
 | 
					
						
							| 
									
										
										
										
											2023-03-22 18:26:10 +00:00
										 |  |  |       - DB_DATABASE=mixpost
 | 
					
						
							|  |  |  |       - DB_USERNAME=tipi
 | 
					
						
							|  |  |  |       - DB_PASSWORD=${MIXPOST_MYSQL_PASSWORD}
 | 
					
						
							| 
									
										
										
										
											2023-03-22 18:32:28 +00:00
										 |  |  |       - REDIS_HOST=mixpost-redis
 | 
					
						
							| 
									
										
										
										
											2023-03-22 18:26:10 +00:00
										 |  |  |       - REDIS_PASSWORD=${MIXPOST_REDIS_PASSWORD}
 | 
					
						
							|  |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							|  |  |  |       - ${APP_DATA_DIR}/data/mixpost-storage:/var/www/html/storage/app
 | 
					
						
							|  |  |  |       - ${APP_DATA_DIR}/data/mixpost-logs:/var/www/html/storage/logs
 | 
					
						
							| 
									
										
										
										
											2023-03-22 19:08:59 +00:00
										 |  |  |       - ${APP_DATA_DIR}/data/nginx/nginx.conf:/etc/nginx/sites-enabled/default
 | 
					
						
							| 
									
										
										
										
											2023-03-22 18:26:10 +00:00
										 |  |  |     ports:
 | 
					
						
							|  |  |  |       - ${APP_PORT}:80
 | 
					
						
							|  |  |  |     depends_on:
 | 
					
						
							| 
									
										
										
										
											2023-03-22 18:31:45 +00:00
										 |  |  |       - mixpost-mysql
 | 
					
						
							|  |  |  |       - mixpost-redis
 | 
					
						
							| 
									
										
										
										
											2023-03-22 18:26:10 +00:00
										 |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							|  |  |  |     labels:
 | 
					
						
							| 
									
										
										
										
											2023-06-12 19:58:59 +00:00
										 |  |  |       # Main
 | 
					
						
							|  |  |  |       traefik.enable: true
 | 
					
						
							|  |  |  |       traefik.http.middlewares.mixpost-web-redirect.redirectscheme.scheme: https
 | 
					
						
							|  |  |  |       traefik.http.services.mixpost.loadbalancer.server.port: 80
 | 
					
						
							|  |  |  |       # Web
 | 
					
						
							|  |  |  |       traefik.http.routers.mixpost-insecure.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.mixpost-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.mixpost-insecure.service: mixpost
 | 
					
						
							|  |  |  |       traefik.http.routers.mixpost-insecure.middlewares: mixpost-web-redirect
 | 
					
						
							|  |  |  |       # Websecure
 | 
					
						
							| 
									
										
										
										
											2023-03-22 18:26:10 +00:00
										 |  |  |       traefik.http.routers.mixpost.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.mixpost.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.mixpost.service: mixpost
 | 
					
						
							|  |  |  |       traefik.http.routers.mixpost.tls.certresolver: myresolver
 | 
					
						
							| 
									
										
										
										
											2023-06-12 19:58:59 +00:00
										 |  |  |       # Local domain
 | 
					
						
							|  |  |  |       traefik.http.routers.mixpost-local-insecure.rule: Host(`mixpost.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.mixpost-local-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.mixpost-local-insecure.service: mixpost
 | 
					
						
							|  |  |  |       traefik.http.routers.mixpost-local-insecure.middlewares: mixpost-web-redirect
 | 
					
						
							|  |  |  |       # Local domain secure
 | 
					
						
							|  |  |  |       traefik.http.routers.mixpost-local.rule: Host(`mixpost.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.mixpost-local.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.mixpost-local.service: mixpost
 | 
					
						
							|  |  |  |       traefik.http.routers.mixpost-local.tls: true
 | 
					
						
							| 
									
										
										
										
											2023-03-22 18:26:10 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-22 18:32:28 +00:00
										 |  |  |   mixpost-mysql:
 | 
					
						
							| 
									
										
										
										
											2023-03-22 18:26:10 +00:00
										 |  |  |     image: mysql/mysql-server:8.0
 | 
					
						
							|  |  |  |     container_name: mixpost_mysql
 | 
					
						
							|  |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     environment:
 | 
					
						
							|  |  |  |       - MYSQL_ROOT_PASSWORD=${MIXPOST_MYSQL_PASSWORD}
 | 
					
						
							|  |  |  |       - MYSQL_USER=tipi
 | 
					
						
							|  |  |  |       - MYSQL_PASSWORD=${MIXPOST_MYSQL_PASSWORD}
 | 
					
						
							|  |  |  |       - MYSQL_DATABASE=mixpost
 | 
					
						
							|  |  |  |     healthcheck:
 | 
					
						
							| 
									
										
										
										
											2023-06-12 19:58:59 +00:00
										 |  |  |       test: ["CMD", "mysqladmin", "ping", "-p ${MIXPOST_MYSQL_PASSWORD}"]
 | 
					
						
							| 
									
										
										
										
											2023-03-28 21:15:56 +00:00
										 |  |  |       retries: 3
 | 
					
						
							|  |  |  |       timeout: 5s
 | 
					
						
							| 
									
										
										
										
											2023-03-22 18:26:10 +00:00
										 |  |  |     volumes:
 | 
					
						
							|  |  |  |       - ${APP_DATA_DIR}/data/mysql:/var/lib/mysql
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-22 18:32:28 +00:00
										 |  |  |   mixpost-redis:
 | 
					
						
							| 
									
										
										
										
											2023-06-12 19:58:59 +00:00
										 |  |  |     image: "redis:latest"
 | 
					
						
							| 
									
										
										
										
											2023-03-22 18:26:10 +00:00
										 |  |  |     command: redis-server --appendonly yes --replica-read-only no --requirepass "${MIXPOST_REDIS_PASSWORD}"
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							| 
									
										
										
										
											2023-06-12 19:58:59 +00:00
										 |  |  |       - "${APP_DATA_DIR}/data/redis:/data"
 | 
					
						
							| 
									
										
										
										
											2023-03-22 18:26:10 +00:00
										 |  |  |     healthcheck:
 | 
					
						
							| 
									
										
										
										
											2023-06-12 19:58:59 +00:00
										 |  |  |       test: ["CMD", "redis-cli", "ping"]
 | 
					
						
							| 
									
										
										
										
											2023-03-28 21:15:56 +00:00
										 |  |  |       retries: 3
 | 
					
						
							|  |  |  |       timeout: 5s
 | 
					
						
							| 
									
										
										
										
											2023-03-22 18:26:10 +00:00
										 |  |  |     networks:
 | 
					
						
							| 
									
										
										
										
											2023-03-22 18:30:26 +00:00
										 |  |  |       - tipi_main_network
 |