mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	Added fediverse bridge draft
This commit is contained in:
		
							
								
								
									
										43
									
								
								roles/web-app-bridgy-fed/templates/docker-compose.yml.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								roles/web-app-bridgy-fed/templates/docker-compose.yml.j2
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,43 @@ | ||||
| {% include 'roles/docker-compose/templates/base.yml.j2' %} | ||||
|  | ||||
|   application: | ||||
|     build: | ||||
|       context: . | ||||
|       dockerfile: Dockerfile | ||||
|       args: | ||||
|         BRIDGY_REPO_URL: "{{ BRIDGY_REPO_URL }}" | ||||
|         BRIDGY_REPO_REF: "{{ BRIDGY_REPO_REF }}" | ||||
|         CONTAINER_PORT:  "{{ container_port | string }}" | ||||
|     image: "{{ BRIDGY_IMAGE }}" | ||||
|     container_name: "{{ BRIDGY_CONTAINER }}" | ||||
|     hostname: "{{ container_hostname }}" | ||||
|     env_file: | ||||
|       - "{{ docker_compose.files.env }}" | ||||
|     ports: | ||||
|       - "127.0.0.1:{{ ports.localhost.http[application_id] }}:{{ container_port }}" | ||||
| {% include 'roles/docker-container/templates/healthcheck/tcp.yml.j2' %} | ||||
| {% include 'roles/docker-container/templates/base.yml.j2' %} | ||||
|     depends_on: | ||||
| {% if EMULATOR_ENABLED | bool %} | ||||
|       - emulator | ||||
| {% endif %} | ||||
| {% include 'roles/docker-container/templates/networks.yml.j2' %} | ||||
|  | ||||
| {% if EMULATOR_ENABLED | bool %} | ||||
|   emulator: | ||||
|     image: "{{ EMULATOR_IMAGE }}" | ||||
|     container_name: "{{ BRIDGY_CONTAINER }}_emulator" | ||||
|     command: > | ||||
|       gcloud emulators firestore start | ||||
|       --host-port=0.0.0.0:{{ EMULATOR_PORT }} | ||||
|       --database-mode=datastore-mode | ||||
|       --quiet | ||||
|     ports: | ||||
|       - "127.0.0.1:{{ EMULATOR_PORT }}:{{ EMULATOR_PORT }}" | ||||
|     environment: | ||||
|       - CLOUDSDK_CORE_DISABLE_PROMPTS=1 | ||||
|     restart: unless-stopped | ||||
| {% include 'roles/docker-container/templates/networks.yml.j2' %} | ||||
| {% endif %} | ||||
|  | ||||
| {% include 'roles/docker-compose/templates/networks.yml.j2' %} | ||||
		Reference in New Issue
	
	Block a user