mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-11-04 12:18:17 +00:00 
			
		
		
		
	Continued Bluesky implementation
This commit is contained in:
		@@ -125,6 +125,7 @@ domain_akaunting:               "accounting.{{top_domain}}"
 | 
				
			|||||||
domain_attendize:               "tickets.{{top_domain}}"
 | 
					domain_attendize:               "tickets.{{top_domain}}"
 | 
				
			||||||
domain_baserow:                 "baserow.{{top_domain}}"
 | 
					domain_baserow:                 "baserow.{{top_domain}}"
 | 
				
			||||||
domain_bigbluebutton:           "meet.{{top_domain}}"
 | 
					domain_bigbluebutton:           "meet.{{top_domain}}"
 | 
				
			||||||
 | 
					domain_bluesky:                 "bluesky.{{top_domain}}"
 | 
				
			||||||
domain_discourse:               "forum.{{top_domain}}"
 | 
					domain_discourse:               "forum.{{top_domain}}"
 | 
				
			||||||
domain_elk:                     "elk.{{top_domain}}"
 | 
					domain_elk:                     "elk.{{top_domain}}"
 | 
				
			||||||
domain_friendica:               "friendica.{{top_domain}}"
 | 
					domain_friendica:               "friendica.{{top_domain}}"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,3 +8,7 @@
 | 
				
			|||||||
- name: add docker-compose.yml
 | 
					- name: add docker-compose.yml
 | 
				
			||||||
  template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
 | 
					  template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
 | 
				
			||||||
  notify: docker compose project setup
 | 
					  notify: docker compose project setup
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: configure run.env
 | 
				
			||||||
 | 
					  template: src=env.j2 dest={{docker_compose_instance_directory}}/env
 | 
				
			||||||
 | 
					  notify: docker compose project setup
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,61 +1,21 @@
 | 
				
			|||||||
services:
 | 
					services:
 | 
				
			||||||
  pds:
 | 
					  application:
 | 
				
			||||||
    container_name: pds
 | 
					 | 
				
			||||||
    image: ghcr.io/bluesky-social/pds:0.4
 | 
					    image: ghcr.io/bluesky-social/pds:0.4
 | 
				
			||||||
    restart: unless-stopped
 | 
					    restart: {{docker_restart_policy}}
 | 
				
			||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
      - 3000:3000
 | 
					      - {{http_port}}:3000
 | 
				
			||||||
    volumes:
 | 
					    volumes:
 | 
				
			||||||
        - path/to/pds/storage:/pds
 | 
					        - data:/pds
 | 
				
			||||||
    env_file:
 | 
					    env_file:
 | 
				
			||||||
      - /path/to/pds.env
 | 
					      - /env
 | 
				
			||||||
 | 
					 | 
				
			||||||
version: "3.8"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
services:
 | 
					 | 
				
			||||||
  pds:
 | 
					 | 
				
			||||||
    image: bluesky-social/pds:latest
 | 
					 | 
				
			||||||
    container_name: bluesky_pds
 | 
					 | 
				
			||||||
    restart: always
 | 
					 | 
				
			||||||
    ports:
 | 
					 | 
				
			||||||
      - "80:80"
 | 
					 | 
				
			||||||
      - "443:443"
 | 
					 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      # Geben Sie hier Ihre Domain und Konfigurationsdetails an
 | 
					      # Geben Sie hier Ihre Domain und Konfigurationsdetails an
 | 
				
			||||||
      PDS_HOSTNAME: "your-domain.com"
 | 
					      PDS_HOSTNAME: "your-domain.com"
 | 
				
			||||||
      PDS_ADMIN_EMAIL: "admin@your-domain.com"
 | 
					      PDS_ADMIN_EMAIL: "admin@your-domain.com"
 | 
				
			||||||
      PDS_DB__POSTGRES__URL: "postgres://pdsuser:pdspassword@postgres:5432/pds"
 | 
					      PDS_DB__POSTGRES__URL: "postgres://pdsuser:pdspassword@postgres:5432/pds"
 | 
				
			||||||
      PDS_SERVICE_DID: "did:web:your-domain.com"
 | 
					      PDS_SERVICE_DID: "did:web:your-domain.com"
 | 
				
			||||||
    volumes:
 | 
					 | 
				
			||||||
      - data:/data
 | 
					 | 
				
			||||||
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  application:
 | 
					 | 
				
			||||||
    logging:
 | 
					 | 
				
			||||||
      driver: journald
 | 
					 | 
				
			||||||
    restart: {{docker_restart_policy}}
 | 
					 | 
				
			||||||
    image: gitea/gitea:latest
 | 
					 | 
				
			||||||
    environment:
 | 
					 | 
				
			||||||
      - USER_UID=1000
 | 
					 | 
				
			||||||
      - USER_GID=1000
 | 
					 | 
				
			||||||
      - DB_TYPE=mysql
 | 
					 | 
				
			||||||
      - DB_HOST={{database_host}}:3306
 | 
					 | 
				
			||||||
      - DB_NAME={{database_name}}
 | 
					 | 
				
			||||||
      - DB_USER={{database_username}}
 | 
					 | 
				
			||||||
      - DB_PASSWD={{database_password}}
 | 
					 | 
				
			||||||
      - SSH_PORT={{ssh_port}}
 | 
					 | 
				
			||||||
      - SSH_LISTEN_PORT=22
 | 
					 | 
				
			||||||
      - DOMAIN={{domain}}
 | 
					 | 
				
			||||||
      - SSH_DOMAIN={{domain}}
 | 
					 | 
				
			||||||
      - RUN_MODE="{{run_mode}}"
 | 
					 | 
				
			||||||
      - ROOT_URL="https://{{domain}}/"
 | 
					 | 
				
			||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
      - "127.0.0.1:{{http_port}}:3000"
 | 
					      - "127.0.0.1:{{http_port}}:3000"
 | 
				
			||||||
      - "{{ssh_port}}:22"
 | 
					 | 
				
			||||||
    volumes:
 | 
					 | 
				
			||||||
      - data:/data
 | 
					 | 
				
			||||||
      - /etc/timezone:/etc/timezone:ro
 | 
					 | 
				
			||||||
      - /etc/localtime:/etc/localtime:ro
 | 
					 | 
				
			||||||
    healthcheck:
 | 
					    healthcheck:
 | 
				
			||||||
      test: ["CMD", "curl", "-f", "http://127.0.0.1:3000"]
 | 
					      test: ["CMD", "curl", "-f", "http://127.0.0.1:3000"]
 | 
				
			||||||
      interval: 1m
 | 
					      interval: 1m
 | 
				
			||||||
@@ -64,6 +24,8 @@ services:
 | 
				
			|||||||
{% include 'templates/docker/container/networks.yml.j2' %}
 | 
					{% include 'templates/docker/container/networks.yml.j2' %}
 | 
				
			||||||
{% include 'templates/docker/container/depends-on-just-database.yml.j2' %}
 | 
					{% include 'templates/docker/container/depends-on-just-database.yml.j2' %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% include 'templates/docker/compose/volumes.yml.j2' %}
 | 
					{% include 'templates/docker/compose/volumes.yml.j2' %}
 | 
				
			||||||
  data:
 | 
					  data:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,11 +1,11 @@
 | 
				
			|||||||
PDS_HOSTNAME= #bluesky.yourdomain.com
 | 
					PDS_HOSTNAME= {{domain}}
 | 
				
			||||||
PDS_JWT_SECRET= #openssl rand --hex 16
 | 
					PDS_JWT_SECRET= #openssl rand --hex 16
 | 
				
			||||||
PDS_ADMIN_PASSWORD= #openssl rand --hex 16
 | 
					PDS_ADMIN_PASSWORD= #openssl rand --hex 16
 | 
				
			||||||
PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX= #openssl ecparam --name secp256k1 --genkey --noout --outform DER | tail --bytes=+8 | head --bytes=32 | xxd --plain --cols 32
 | 
					PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX= #openssl ecparam --name secp256k1 --genkey --noout --outform DER | tail --bytes=+8 | head --bytes=32 | xxd --plain --cols 32
 | 
				
			||||||
PDS_EMAIL_SMTP_URL= #smtp://username@gmail.com:password@smtp.gmail.com:587
 | 
					PDS_EMAIL_SMTP_URL= #smtp://username@gmail.com:password@smtp.gmail.com:587
 | 
				
			||||||
PDS_EMAIL_FROM_ADDRESS= #admin@domain.com
 | 
					PDS_EMAIL_FROM_ADDRESS= {{administrator_email}}
 | 
				
			||||||
PDS_MODERATION_EMAIL_SMTP_URL= #smtp://username@gmail.com:password@smtp.gmail.com:587
 | 
					PDS_MODERATION_EMAIL_SMTP_URL= #smtp://username@gmail.com:password@smtp.gmail.com:587
 | 
				
			||||||
PDS_MODERATION_EMAIL_ADDRESS= #admin@domain.com
 | 
					PDS_MODERATION_EMAIL_ADDRESS= {{administrator_email}}
 | 
				
			||||||
PDS_DATA_DIRECTORY=/pds
 | 
					PDS_DATA_DIRECTORY=/pds
 | 
				
			||||||
PDS_BLOBSTORE_DISK_LOCATION=/pds/blocks
 | 
					PDS_BLOBSTORE_DISK_LOCATION=/pds/blocks
 | 
				
			||||||
PDS_DID_PLC_URL=https://plc.directory
 | 
					PDS_DID_PLC_URL=https://plc.directory
 | 
				
			||||||
		Reference in New Issue
	
	Block a user