Added bar assistant
This commit is contained in:
		
							
								
								
									
										59
									
								
								ansible/roles/barassistant/templates/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										59
									
								
								ansible/roles/barassistant/templates/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,59 @@ | ||||
| version: "{{ docker_compose_version }}" | ||||
|  | ||||
| networks: | ||||
|   traefik: | ||||
|     external: true | ||||
|  | ||||
| services: | ||||
|   meilisearch: | ||||
|     image: getmeili/meilisearch:v1.0 | ||||
|     restart: unless-stopped | ||||
|     environment: | ||||
|       MEILI_MASTER_KEY: "{{ meili_master_key }}" | ||||
|     volumes: | ||||
|       - "{{ data_dir }}/barassistant/meilisearch:/meili_data" | ||||
|  | ||||
|   redis: | ||||
|     image: redis | ||||
|     restart: unless-stopped | ||||
|     environment: | ||||
|       ALLOW_EMPTY_PASSWORD: "True" | ||||
|  | ||||
|   bar-assistant: | ||||
|     image: barassistant/server:latest | ||||
|     restart: unless-stopped | ||||
|     depends_on: | ||||
|       - meilisearch | ||||
|       - redis | ||||
|     environment: | ||||
|       APP_URL: "{{ base_url }}/bar" | ||||
|       LOG_CHANNEL: stderr | ||||
|       MEILISEARCH_KEY: "{{ meili_master_key }}" | ||||
|       MEILISEARCH_HOST: http://meilisearch:7700 | ||||
|       REDIS_HOST: redis | ||||
|       ALLOW_REGISTRATION: "True" | ||||
|     volumes: | ||||
|       - "{{ data_dir }}/barassistant/barassistant:/var/www/cocktails/storage/bar-assisant" | ||||
|  | ||||
|   salt-rim: | ||||
|     image: barassistant/salt-rim:latest | ||||
|     restart: unless-stopped | ||||
|     depends_on: | ||||
|       - bar-assistant | ||||
|     environment: | ||||
|       API_URL: "{{ base_url }}/bar" | ||||
|       MEILISEARCH_URL: "{{ base_url }}/search" | ||||
|       BAR_NAME: "COCKTAILING" | ||||
|       DESCRIPTION: Mike's Drinking Time | ||||
|       DEFAULT_LOCALE: "en-US" | ||||
|  | ||||
|   webserver: | ||||
|     image: nginx:alpine | ||||
|     restart: unless-stopped | ||||
|     networks: | ||||
|       - traefik | ||||
|     volumes: | ||||
|       - "./nginx.conf:/etc/nginx/conf.d/default.conf" | ||||
|     labels: | ||||
|       traefik.enable: true | ||||
|       traefik.http.routers.barassistant.rule: "Host(`{{ base_url }}`)" | ||||
		Reference in New Issue
	
	Block a user