Sharkey Stack: add old base compose file for reference
This commit is contained in:
parent
1b6a6b3af6
commit
723f68d985
2 changed files with 84 additions and 0 deletions
0
Docker/Docker-Compose/Sharkey/.env.sample
Normal file
0
Docker/Docker-Compose/Sharkey/.env.sample
Normal file
84
Docker/Docker-Compose/Sharkey/docker-compose.yml
Normal file
84
Docker/Docker-Compose/Sharkey/docker-compose.yml
Normal file
|
@ -0,0 +1,84 @@
|
||||||
|
name: sharkey-stack [0/70]
|
||||||
|
|
||||||
|
services:
|
||||||
|
web:
|
||||||
|
image: registry.activitypub.software/transfem-org/sharkey:2025.2.3
|
||||||
|
restart: unless-stopped
|
||||||
|
links:
|
||||||
|
- db
|
||||||
|
- redis
|
||||||
|
# - mcaptcha
|
||||||
|
- meilisearch
|
||||||
|
depends_on:
|
||||||
|
db:
|
||||||
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
|
ports:
|
||||||
|
- "3003:3000"
|
||||||
|
networks:
|
||||||
|
- calcnet
|
||||||
|
#environment:
|
||||||
|
# - NODE_ENV=production
|
||||||
|
environment:
|
||||||
|
- NODE_OPTIONS="--max-old-space-size=8192"
|
||||||
|
volumes:
|
||||||
|
- ./files:/sharkey/files
|
||||||
|
- ./.config:/sharkey/.config:ro
|
||||||
|
|
||||||
|
redis:
|
||||||
|
restart: unless-stopped
|
||||||
|
image: valkey/valkey:7-alpine
|
||||||
|
networks:
|
||||||
|
- calcnet
|
||||||
|
volumes:
|
||||||
|
- ./redis:/data
|
||||||
|
healthcheck:
|
||||||
|
test: "redis-cli ping"
|
||||||
|
interval: 5s
|
||||||
|
retries: 20
|
||||||
|
|
||||||
|
db:
|
||||||
|
restart: unless-stopped
|
||||||
|
image: postgres:15-alpine
|
||||||
|
networks:
|
||||||
|
- calcnet
|
||||||
|
env_file:
|
||||||
|
- .config/docker.env
|
||||||
|
volumes:
|
||||||
|
- ./db:/var/lib/postgresql/data
|
||||||
|
healthcheck:
|
||||||
|
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
|
||||||
|
interval: 5s
|
||||||
|
retries: 20
|
||||||
|
|
||||||
|
|
||||||
|
### Only one of the below should be used.
|
||||||
|
### Meilisearch is better overall, but resource-intensive. Sonic is a very light full text search engine.
|
||||||
|
|
||||||
|
meilisearch:
|
||||||
|
image: getmeili/meilisearch:v1.13.0
|
||||||
|
environment:
|
||||||
|
- MEILI_NO_ANALYTICS=true
|
||||||
|
- MEILI_ENV=production
|
||||||
|
- MEILI_MASTER_KEY=KHvGXxYilGpycX0WVpRXhlL5y
|
||||||
|
ports:
|
||||||
|
- "7700:7700"
|
||||||
|
networks:
|
||||||
|
- calcnet
|
||||||
|
volumes:
|
||||||
|
- ./meili_data:/meili_data
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# sonic:
|
||||||
|
# restart: unless-stopped
|
||||||
|
# image: docker.io/valeriansaliou/sonic:v1.4.0
|
||||||
|
# networks:
|
||||||
|
# - calcnet
|
||||||
|
# volumes:
|
||||||
|
# - ./sonic:/var/lib/sonic/store
|
||||||
|
# - ./sonic/config.cfg:/etc/sonic.cfg
|
||||||
|
|
||||||
|
networks:
|
||||||
|
calcnet:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue