mirror of
https://github.com/aljazceru/pubky-docker.git
synced 2025-12-17 07:24:35 +01:00
fix: add default env sample
This commit is contained in:
28
.env-sample
Normal file
28
.env-sample
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
#####
|
||||||
|
# DOCKER COMPOSE
|
||||||
|
#####
|
||||||
|
|
||||||
|
# mainnet or testnet network
|
||||||
|
NETWORK=testnet # mainnet
|
||||||
|
|
||||||
|
#####
|
||||||
|
# CLIENT
|
||||||
|
#####
|
||||||
|
|
||||||
|
# # Testnet
|
||||||
|
NEXT_PUBLIC_HOMESERVER=8pinxxgqs41n4aididenw5apqp1urfmzdztr8jt4abrkdn435ewo
|
||||||
|
NEXT_PUBLIC_NEXUS=http://localhost:8080
|
||||||
|
NEXT_PUBLIC_TESTNET=true
|
||||||
|
NEXT_PUBLIC_DEFAULT_HTTP_RELAY=http://localhost:15412/link/
|
||||||
|
NEXT_PUBLIC_PKARR_RELAYS=["https://pkarr.pubky.app","https://pkarr.pubky.org"] # Ignored when using Testnet
|
||||||
|
NEXT_ENABLE_PLAUSIBLE=false
|
||||||
|
|
||||||
|
# Mainnet
|
||||||
|
# NEXT_PUBLIC_HOMESERVER=8pinxxgqs41n4aididenw5apqp1urfmzdztr8jt4abrkdn435ewo
|
||||||
|
# NEXT_PUBLIC_NEXUS=http://localhost:8080
|
||||||
|
# NEXT_PUBLIC_TESTNET=false
|
||||||
|
# NEXT_PUBLIC_DEFAULT_HTTP_RELAY=https://httprelay.staging.pubky.app/link/
|
||||||
|
|
||||||
|
# # Replace with these for mainnet Staging servers
|
||||||
|
# NEXT_PUBLIC_HOMESERVER=ufibwbmed6jeq9k4p583go95wofakh9fwpp4k734trq79pd9u1uy
|
||||||
|
# NEXT_PUBLIC_NEXUS=https://nexus.staging.pubky.app
|
||||||
@@ -7,12 +7,14 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./pkarr.config.toml:/config.toml
|
- ./pkarr.config.toml:/config.toml
|
||||||
- .storage/pkarr:/cache
|
- .storage/pkarr:/cache
|
||||||
command: pkarr-server --config=/config.toml
|
command: pkarr-relay --config=/config.toml
|
||||||
# networks:
|
networks:
|
||||||
# - default
|
pubky:
|
||||||
# ports:
|
ipv4_address: "172.18.0.2"
|
||||||
# - 6882:6882
|
ports:
|
||||||
network_mode: host
|
- 6882:6882
|
||||||
|
profiles:
|
||||||
|
- pkarr
|
||||||
|
|
||||||
# 2. Pubky Homeserver
|
# 2. Pubky Homeserver
|
||||||
homeserver:
|
homeserver:
|
||||||
@@ -27,13 +29,19 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
entrypoint: [ "/bin/sh", "-c", "/entrypoint.sh" ]
|
entrypoint: [ "/bin/sh", "-c", "/entrypoint.sh" ]
|
||||||
# networks:
|
networks:
|
||||||
# - default
|
pubky:
|
||||||
# ports:
|
ipv4_address: "172.18.0.4"
|
||||||
# - 6287:6287
|
ports:
|
||||||
# depends_on:
|
- 6287:6287
|
||||||
# - pkarr
|
- 6286:6286
|
||||||
network_mode: host
|
- 6288:6288
|
||||||
|
- 15411:15411
|
||||||
|
- 15412:15412
|
||||||
|
depends_on:
|
||||||
|
pkarr:
|
||||||
|
condition: "service_started"
|
||||||
|
required: false
|
||||||
|
|
||||||
# 3 Nexus
|
# 3 Nexus
|
||||||
# 3.1 Pubky Nexus Daemon
|
# 3.1 Pubky Nexus Daemon
|
||||||
@@ -48,11 +56,11 @@ services:
|
|||||||
- .storage/static:/static
|
- .storage/static:/static
|
||||||
# Mount the config file
|
# Mount the config file
|
||||||
- ./pubky-nexus-config-${NETWORK:-testnet}.toml:/config/config.toml
|
- ./pubky-nexus-config-${NETWORK:-testnet}.toml:/config/config.toml
|
||||||
# ports:
|
ports:
|
||||||
# - 8080:8080
|
- 8080:8080
|
||||||
# networks:
|
networks:
|
||||||
# - default
|
pubky:
|
||||||
network_mode: host
|
ipv4_address: "172.18.0.3"
|
||||||
depends_on:
|
depends_on:
|
||||||
- nexus-neo4j
|
- nexus-neo4j
|
||||||
- nexus-redis
|
- nexus-redis
|
||||||
@@ -62,14 +70,14 @@ services:
|
|||||||
image: neo4j:5.26.7-community
|
image: neo4j:5.26.7-community
|
||||||
container_name: nexus-neo4j
|
container_name: nexus-neo4j
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# ports:
|
ports:
|
||||||
# - 7474:7474
|
- 7474:7474
|
||||||
# - 7687:7687
|
- 7687:7687
|
||||||
# networks:
|
networks:
|
||||||
# - default
|
pubky:
|
||||||
network_mode: host
|
ipv4_address: "172.18.0.5"
|
||||||
volumes:
|
volumes:
|
||||||
# Mount the neo4j configuration file to container
|
# Mount the neo4j configuration file to container
|
||||||
- .storage/neo4j/conf:/conf
|
- .storage/neo4j/conf:/conf
|
||||||
# Mount the data to container
|
# Mount the data to container
|
||||||
- .storage/neo4j/data:/data
|
- .storage/neo4j/data:/data
|
||||||
@@ -82,12 +90,12 @@ services:
|
|||||||
nexus-redis:
|
nexus-redis:
|
||||||
image: redis/redis-stack:7.2.0-v11
|
image: redis/redis-stack:7.2.0-v11
|
||||||
container_name: nexus-redis
|
container_name: nexus-redis
|
||||||
# ports:
|
ports:
|
||||||
# - 6379:6379
|
- 6379:6379
|
||||||
# - 8001:8001 # Redis Insight http://localhost:8001/
|
- 8001:8001 # Redis Insight http://localhost:8001/
|
||||||
# networks:
|
networks:
|
||||||
# - default
|
pubky:
|
||||||
network_mode: host
|
ipv4_address: "172.18.0.6"
|
||||||
volumes:
|
volumes:
|
||||||
- .storage/redis/data:/data
|
- .storage/redis/data:/data
|
||||||
- ./redis.conf:/usr/local/etc/redis/redis.conf
|
- ./redis.conf:/usr/local/etc/redis/redis.conf
|
||||||
@@ -108,15 +116,20 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
command: [ "npm", "run", "serve:prod" ]
|
command: [ "npm", "run", "serve:prod" ]
|
||||||
# networks:
|
networks:
|
||||||
# - default
|
pubky:
|
||||||
# ports:
|
ipv4_address: "172.18.0.7"
|
||||||
# - 4200:4200
|
ports:
|
||||||
network_mode: host
|
- 4200:4200
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
pubky:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
enable_ipv6: false
|
||||||
|
ipam:
|
||||||
|
driver: default
|
||||||
|
config:
|
||||||
|
- subnet: 172.18.0.0/16
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
backend_storage:
|
backend_storage:
|
||||||
|
|||||||
@@ -6,3 +6,7 @@ signup_mode = "token_required"
|
|||||||
|
|
||||||
[pkdns]
|
[pkdns]
|
||||||
icann_domain = "localhost"
|
icann_domain = "localhost"
|
||||||
|
public_ip = "172.18.0.4"
|
||||||
|
|
||||||
|
[derive]
|
||||||
|
testnet_host = "homeserver"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Check the NETWORK environment variable and execute the appropriate command
|
# Check the NETWORK environment variable and execute the appropriate command
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ NEO4J_AUTH=neo4j/12345678 # ${NEO4J_DB_USERNAME}/${NEO4J_PASSWORD}
|
|||||||
# https://neo4j.com/docs/operations-manual/current/docker/configuration/
|
# https://neo4j.com/docs/operations-manual/current/docker/configuration/
|
||||||
# Modify the default configuration
|
# Modify the default configuration
|
||||||
# Raise memory limits
|
# Raise memory limits
|
||||||
NEO4J_server_memory_pagecache_size=2G
|
NEO4J_server_memory_pagecache_size=1G
|
||||||
NEO4J_server_memory_heap_initial__size=4G
|
NEO4J_server_memory_heap_initial__size=1G
|
||||||
NEO4J_server_memory_heap_max__size=8G
|
NEO4J_server_memory_heap_max__size=2G
|
||||||
NEO4J_apoc_uuid_enabled=false
|
NEO4J_apoc_uuid_enabled=false
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
[api]
|
[api]
|
||||||
name = "nexusd.api"
|
name = "nexusd.api"
|
||||||
public_addr = "127.0.0.1:8080"
|
public_addr = "0.0.0.0:8080"
|
||||||
|
|
||||||
[watcher]
|
[watcher]
|
||||||
name = "nexusd.watcher"
|
name = "nexusd.watcher"
|
||||||
@@ -17,8 +17,8 @@ log_level = "debug"
|
|||||||
files_path = "/static/files/"
|
files_path = "/static/files/"
|
||||||
|
|
||||||
[stack.db]
|
[stack.db]
|
||||||
redis = "redis://localhost:6379"
|
redis = "redis://nexus-redis:6379"
|
||||||
|
|
||||||
[stack.db.neo4j]
|
[stack.db.neo4j]
|
||||||
uri = "bolt://localhost:7687"
|
uri = "bolt://nexus-neo4j:7687"
|
||||||
password = "12345678"
|
password = "12345678"
|
||||||
|
|||||||
Reference in New Issue
Block a user