| 
									
										
										
										
											2023-04-04 20:46:31 +00:00
										 |  |  | version: "3"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | services:
 | 
					
						
							|  |  |  |   romm:
 | 
					
						
							| 
									
										
										
										
											2023-12-27 22:35:10 +00:00
										 |  |  |     image: zurdi15/romm:2.1.0
 | 
					
						
							| 
									
										
										
										
											2023-04-04 20:46:31 +00:00
										 |  |  |     container_name: romm
 | 
					
						
							|  |  |  |     environment:
 | 
					
						
							| 
									
										
										
										
											2023-12-27 22:35:10 +00:00
										 |  |  |       - ROMM_DB_DRIVER=mariadb
 | 
					
						
							|  |  |  |       - DB_HOST=romm-db
 | 
					
						
							|  |  |  |       - DB_PORT=3306
 | 
					
						
							|  |  |  |       - DB_USER=tipi
 | 
					
						
							| 
									
										
										
										
											2023-04-04 20:46:31 +00:00
										 |  |  |       - DB_NAME=romm
 | 
					
						
							| 
									
										
										
										
											2023-12-27 22:35:10 +00:00
										 |  |  |       - DB_PASSWD=${ROMM_MYSQL_PASSWORD}
 | 
					
						
							|  |  |  |       - IGDB_CLIENT_ID=${ROMM_IGDB_CLIENT_ID}
 | 
					
						
							|  |  |  |       - IGDB_CLIENT_SECRET=${ROMM_IGDB_CLIENT_SECRET}
 | 
					
						
							| 
									
										
										
										
											2023-04-04 20:46:31 +00:00
										 |  |  |       - STEAMGRIDDB_API_KEY="${ROMM_STEAMGRIDDB_API_KEY}"
 | 
					
						
							|  |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							|  |  |  |       - ${ROOT_FOLDER_HOST}/media/data/roms:/romm/library
 | 
					
						
							|  |  |  |       - ${APP_DATA_DIR}/data/romm-resources:/romm/resources
 | 
					
						
							|  |  |  |       - ${APP_DATA_DIR}/data/config.yml:/romm/config.yml
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							| 
									
										
										
										
											2023-12-27 22:35:10 +00:00
										 |  |  |       - ${APP_PORT}:8080
 | 
					
						
							| 
									
										
										
										
											2023-04-04 20:46:31 +00:00
										 |  |  |     depends_on:
 | 
					
						
							|  |  |  |       - romm-db
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							|  |  |  |     labels:
 | 
					
						
							| 
									
										
										
										
											2023-06-18 16:02:29 +00:00
										 |  |  |       # Main
 | 
					
						
							|  |  |  |       traefik.enable: true
 | 
					
						
							|  |  |  |       traefik.http.middlewares.romm-web-redirect.redirectscheme.scheme: https
 | 
					
						
							| 
									
										
										
										
											2023-12-27 22:35:10 +00:00
										 |  |  |       traefik.http.services.romm.loadbalancer.server.port: 8080
 | 
					
						
							| 
									
										
										
										
											2023-06-18 16:02:29 +00:00
										 |  |  |       # Web
 | 
					
						
							|  |  |  |       traefik.http.routers.romm-insecure.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.romm-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.romm-insecure.service: romm
 | 
					
						
							|  |  |  |       traefik.http.routers.romm-insecure.middlewares: romm-web-redirect
 | 
					
						
							|  |  |  |       # Websecure
 | 
					
						
							| 
									
										
										
										
											2023-04-04 20:46:31 +00:00
										 |  |  |       traefik.http.routers.romm.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.romm.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.romm.service: romm
 | 
					
						
							|  |  |  |       traefik.http.routers.romm.tls.certresolver: myresolver
 | 
					
						
							| 
									
										
										
										
											2023-06-18 16:02:29 +00:00
										 |  |  |       # Local domain
 | 
					
						
							|  |  |  |       traefik.http.routers.romm-local-insecure.rule: Host(`romm.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.romm-local-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.romm-local-insecure.service: romm
 | 
					
						
							|  |  |  |       traefik.http.routers.romm-local-insecure.middlewares: romm-web-redirect
 | 
					
						
							|  |  |  |       # Local domain secure
 | 
					
						
							|  |  |  |       traefik.http.routers.romm-local.rule: Host(`romm.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.romm-local.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.romm-local.service: romm
 | 
					
						
							|  |  |  |       traefik.http.routers.romm-local.tls: true
 | 
					
						
							| 
									
										
										
										
											2023-04-04 20:46:31 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |   romm-db:
 | 
					
						
							|  |  |  |     image: lscr.io/linuxserver/mariadb:latest
 | 
					
						
							|  |  |  |     container_name: romm-db
 | 
					
						
							|  |  |  |     environment:
 | 
					
						
							|  |  |  |       - MYSQL_ROOT_PASSWORD=${ROMM_MYSQL_PASSWORD}
 | 
					
						
							|  |  |  |       - MYSQL_DATABASE=romm
 | 
					
						
							|  |  |  |       - MYSQL_USER=tipi
 | 
					
						
							|  |  |  |       - MYSQL_PASSWORD=${ROMM_MYSQL_PASSWORD}
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							|  |  |  |       - ${APP_DATA_DIR}/data/mysql/config:/config
 | 
					
						
							|  |  |  |     restart: "unless-stopped"
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							| 
									
										
										
										
											2023-06-18 16:02:29 +00:00
										 |  |  |       - tipi_main_network
 |