| 
									
										
										
										
											2024-01-13 14:20:52 +00:00
										 |  |  | version: "3.5"
 | 
					
						
							|  |  |  | services:
 | 
					
						
							|  |  |  |   atuin:
 | 
					
						
							| 
									
										
										
										
											2024-01-19 01:23:59 +00:00
										 |  |  |     container_name: atuin
 | 
					
						
							| 
									
										
										
										
											2024-01-13 14:20:52 +00:00
										 |  |  |     restart: always
 | 
					
						
							|  |  |  |     image: ghcr.io/atuinsh/atuin:latest
 | 
					
						
							|  |  |  |     command: server start
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							| 
									
										
										
										
											2024-01-29 18:53:14 +00:00
										 |  |  |       - "${APP_DATA_DIR}/data/config:/config"
 | 
					
						
							| 
									
										
										
										
											2024-01-13 14:20:52 +00:00
										 |  |  |     links:
 | 
					
						
							|  |  |  |       - postgresql:db
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							| 
									
										
										
										
											2024-01-29 18:53:14 +00:00
										 |  |  |       - ${APP_PORT}:8888
 | 
					
						
							| 
									
										
										
										
											2024-01-13 14:20:52 +00:00
										 |  |  |     environment:
 | 
					
						
							|  |  |  |       ATUIN_HOST: "0.0.0.0"
 | 
					
						
							| 
									
										
										
										
											2024-01-29 18:53:14 +00:00
										 |  |  |       ATUIN_OPEN_REGISTRATION: ${ATUIN_ALLOW_REGISTRATION}
 | 
					
						
							| 
									
										
										
										
											2024-01-14 05:09:32 +00:00
										 |  |  |       ATUIN_DB_URI: "postgres://atuin:${ATUIN_DB_PASSWORD}@db/atuin"
 | 
					
						
							| 
									
										
										
										
											2024-01-13 14:20:52 +00:00
										 |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							|  |  |  |     labels:
 | 
					
						
							|  |  |  |       # Main
 | 
					
						
							|  |  |  |       traefik.enable: true
 | 
					
						
							|  |  |  |       traefik.http.middlewares.atuin-web-redirect.redirectscheme.scheme: https
 | 
					
						
							|  |  |  |       traefik.http.services.atuin.loadbalancer.server.port: 8888
 | 
					
						
							|  |  |  |       # Web
 | 
					
						
							|  |  |  |       traefik.http.routers.atuin-insecure.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.atuin-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.atuin-insecure.service: atuin
 | 
					
						
							|  |  |  |       traefik.http.routers.atuin-insecure.middlewares: atuin-web-redirect
 | 
					
						
							|  |  |  |       # Websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.atuin.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.atuin.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.atuin.service: atuin
 | 
					
						
							|  |  |  |       traefik.http.routers.atuin.tls.certresolver: myresolver
 | 
					
						
							|  |  |  |       # Local domain
 | 
					
						
							|  |  |  |       traefik.http.routers.atuin-local-insecure.rule: Host(`atuin.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.atuin-local-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.atuin-local-insecure.service: atuin
 | 
					
						
							|  |  |  |       traefik.http.routers.atuin-local-insecure.middlewares: atuin-web-redirect
 | 
					
						
							|  |  |  |       # Local domain secure
 | 
					
						
							|  |  |  |       traefik.http.routers.atuin-local.rule: Host(`atuin.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.atuin-local.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.atuin-local.service: atuin
 | 
					
						
							|  |  |  |       traefik.http.routers.atuin-local.tls: true
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   postgresql:
 | 
					
						
							|  |  |  |     image: postgres:14
 | 
					
						
							|  |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     volumes: # Don't remove permanent storage for index database files!
 | 
					
						
							| 
									
										
										
										
											2024-01-14 04:56:51 +00:00
										 |  |  |       - "${APP_DATA_DIR}/data:/var/lib/postgresql/data/"
 | 
					
						
							| 
									
										
										
										
											2024-01-13 14:20:52 +00:00
										 |  |  |     environment:
 | 
					
						
							|  |  |  |       POSTGRES_USER: atuin
 | 
					
						
							| 
									
										
										
										
											2024-01-14 05:09:32 +00:00
										 |  |  |       POSTGRES_PASSWORD: "${ATUIN_DB_PASSWORD}"
 | 
					
						
							| 
									
										
										
										
											2024-01-13 14:20:52 +00:00
										 |  |  |       POSTGRES_DB: atuin
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							| 
									
										
										
										
											2024-01-29 18:53:14 +00:00
										 |  |  |       
 |