2025-01-09 09:00:09 +01:00
|
|
|
services:
|
2025-01-17 12:56:32 +01:00
|
|
|
pds:
|
2025-02-03 11:44:13 +01:00
|
|
|
image: "ghcr.io/bluesky-social/pds:{{applications.bluesky.pds.version}}"
|
2025-02-06 23:59:53 +01:00
|
|
|
{% include 'roles/docker-compose/templates/services/base.yml.j2' %}
|
2025-01-09 09:00:09 +01:00
|
|
|
volumes:
|
2025-01-17 13:40:31 +01:00
|
|
|
- pds_data:/pds
|
2025-01-17 20:47:42 +01:00
|
|
|
- {{pdsadmin_file_path}}:/usr/local/bin/pdsadmin:ro
|
2025-01-09 09:00:09 +01:00
|
|
|
ports:
|
2025-02-07 00:12:05 +01:00
|
|
|
- "127.0.0.1:{{ports.localhost.http_ports.bluesky_api}}:3000"
|
2025-01-09 09:00:09 +01:00
|
|
|
healthcheck:
|
2025-01-17 18:31:49 +01:00
|
|
|
test: ["CMD", "wget", "--spider", "http://127.0.0.1:3000/xrpc/_health"]
|
2025-01-09 09:00:09 +01:00
|
|
|
interval: 1m
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
|
|
|
|
2025-01-17 12:56:32 +01:00
|
|
|
# Deactivated for the moment @see https://github.com/bluesky-social/social-app
|
2025-01-17 17:26:52 +01:00
|
|
|
web:
|
|
|
|
command: ["bskyweb","serve"]
|
|
|
|
build:
|
|
|
|
context: "{{ social_app_path }}"
|
2025-01-17 20:47:42 +01:00
|
|
|
dockerfile: Dockerfile
|
|
|
|
# It doesn't compile yet with this parameters. @todo Fix it
|
2025-01-17 17:26:52 +01:00
|
|
|
args:
|
2025-02-07 00:12:05 +01:00
|
|
|
REACT_APP_PDS_URL: "http://{{domains.bluesky_api}}" # URL des PDS
|
|
|
|
REACT_APP_API_URL: "http://{{domains.bluesky_api}}" # API-URL des PDS
|
2025-01-21 14:09:06 +01:00
|
|
|
REACT_APP_SITE_NAME: "{{primary_domain | upper}} - Bluesky"
|
2025-01-17 17:26:52 +01:00
|
|
|
REACT_APP_SITE_DESCRIPTION: "Decentral Social "
|
|
|
|
ports:
|
2025-02-07 00:12:05 +01:00
|
|
|
- "127.0.0.1:{{ports.localhost.http_ports.bluesky_web}}:8100"
|
2025-01-17 17:26:52 +01:00
|
|
|
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
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
2025-02-06 23:59:53 +01:00
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
2025-01-17 17:26:52 +01:00
|
|
|
|
2025-01-09 09:00:09 +01:00
|
|
|
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
2025-01-17 13:40:31 +01:00
|
|
|
pds_data:
|
2025-01-09 09:00:09 +01:00
|
|
|
|
|
|
|
{% include 'templates/docker/compose/networks.yml.j2' %}
|