mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 04:03:49 +01:00
84 lines
1.9 KiB
YAML
84 lines
1.9 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
web:
|
|
image: iceshrimp.dev/iceshrimp/iceshrimp:latest
|
|
### If you want to build the image locally
|
|
# build:
|
|
# context: .
|
|
# args:
|
|
# - SCCACHE_VERSION=v0.5.4
|
|
# - SCCACHE_ARCHITECTURE=x86_64
|
|
### If you are using ARM64
|
|
# - SCCACHE_ARCHITECTURE=aarch64
|
|
# - SCCACHE_MEMORY_LIMIT=10G #You may want to lower or increase this value as you see fit. 10G is 10GB.
|
|
container_name: iceshrimp_web
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
### Uncomment one of the following to use a search engine
|
|
# - meilisearch
|
|
# - sonic
|
|
ports:
|
|
- "3000:3000"
|
|
networks:
|
|
- ishnet
|
|
# - web
|
|
environment:
|
|
NODE_ENV: production
|
|
volumes:
|
|
- ./files:/iceshrimp/files
|
|
- ./.config:/iceshrimp/.config:ro
|
|
|
|
redis:
|
|
restart: unless-stopped
|
|
image: docker.io/redis:7.0-alpine
|
|
container_name: iceshrimp_redis
|
|
networks:
|
|
- ishnet
|
|
volumes:
|
|
- ./redis:/data
|
|
|
|
db:
|
|
restart: unless-stopped
|
|
image: docker.io/postgres:12.2-alpine
|
|
container_name: iceshrimp_db
|
|
networks:
|
|
- ishnet
|
|
env_file:
|
|
- .config/docker.env
|
|
volumes:
|
|
- ./db:/var/lib/postgresql/data
|
|
|
|
### 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:
|
|
# container_name: meilisearch
|
|
# image: getmeili/meilisearch:v1.1.1
|
|
# environment:
|
|
# - MEILI_ENV=${MEILI_ENV:-development}
|
|
# ports:
|
|
# - "7700:7700"
|
|
# networks:
|
|
# - ishnet
|
|
# volumes:
|
|
# - ./meili_data:/meili_data
|
|
# restart: unless-stopped
|
|
|
|
# sonic:
|
|
# restart: unless-stopped
|
|
# image: docker.io/valeriansaliou/sonic:v1.4.0
|
|
# networks:
|
|
# - ishnet
|
|
# volumes:
|
|
# - ./sonic:/var/lib/sonic/store
|
|
# - ./sonic/config.cfg:/etc/sonic.cfg
|
|
|
|
networks:
|
|
ishnet:
|
|
# web:
|
|
# external:
|
|
# name: web
|