mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-02-22 12:29:39 +01:00
Refactored bluesky variables
This commit is contained in:
parent
f0760d3969
commit
22309acfff
@ -196,11 +196,6 @@
|
||||
become: true
|
||||
roles:
|
||||
- role: docker-bluesky
|
||||
vars:
|
||||
domain_api: "{{domains.bluesky_api}}"
|
||||
domain_web: "{{domains.bluesky_web}}"
|
||||
http_port_api: 8030
|
||||
http_port_web: 8031
|
||||
|
||||
- name: setup keycloak
|
||||
hosts: keycloak
|
||||
|
@ -6,14 +6,14 @@
|
||||
- name: "Include tasks for API domain"
|
||||
include_tasks: nginx-docker-proxy-domain.yml
|
||||
vars:
|
||||
domain: "{{ domain_api }}"
|
||||
http_port: "{{ http_port_api }}"
|
||||
domain: "{{ domains.bluesky_api }}"
|
||||
http_port: "{{ ports.localhost.http_ports.bluesky_api }}"
|
||||
|
||||
- name: "Include tasks for Web domain"
|
||||
include_tasks: nginx-docker-proxy-domain.yml
|
||||
vars:
|
||||
domain: "{{ domain_web }}"
|
||||
http_port: "{{ http_port_web }}"
|
||||
domain: "{{ domains.bluesky_web }}"
|
||||
http_port: "{{ ports.localhost.http_ports.bluesky_web }}"
|
||||
|
||||
# The following lines should be removed when the following issue is closed:
|
||||
# https://github.com/bluesky-social/pds/issues/52
|
||||
|
@ -6,7 +6,7 @@ services:
|
||||
- pds_data:/pds
|
||||
- {{pdsadmin_file_path}}:/usr/local/bin/pdsadmin:ro
|
||||
ports:
|
||||
- "127.0.0.1:{{http_port_api}}:3000"
|
||||
- "127.0.0.1:{{ports.localhost.http_ports.bluesky_api}}:3000"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "http://127.0.0.1:3000/xrpc/_health"]
|
||||
interval: 1m
|
||||
@ -22,12 +22,12 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
# It doesn't compile yet with this parameters. @todo Fix it
|
||||
args:
|
||||
REACT_APP_PDS_URL: "http://{{domain_api}}" # URL des PDS
|
||||
REACT_APP_API_URL: "http://{{domain_api}}" # API-URL des PDS
|
||||
REACT_APP_PDS_URL: "http://{{domains.bluesky_api}}" # URL des PDS
|
||||
REACT_APP_API_URL: "http://{{domains.bluesky_api}}" # API-URL des PDS
|
||||
REACT_APP_SITE_NAME: "{{primary_domain | upper}} - Bluesky"
|
||||
REACT_APP_SITE_DESCRIPTION: "Decentral Social "
|
||||
ports:
|
||||
- "127.0.0.1:{{http_port_web}}:8100"
|
||||
- "127.0.0.1:{{ports.localhost.http_ports.bluesky_web}}:8100"
|
||||
healthcheck:
|
||||
test: ["CMD", "sh", "-c", "for pid in $(ls /proc | grep -E '^[0-9]+$'); do if cat /proc/$pid/cmdline 2>/dev/null | grep -q 'bskywebserve'; then exit 0; fi; done; exit 1"]
|
||||
interval: 30s
|
||||
|
Loading…
x
Reference in New Issue
Block a user