mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-21 21:45:11 +00:00
55 lines
1,011 B
YAML
55 lines
1,011 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
|
|
volumes:
|
|
- ../:/workspace:cached
|
|
- node_modules:/workspace/node_modules
|
|
|
|
command: sleep infinity
|
|
|
|
networks:
|
|
- internal_network
|
|
- external_network
|
|
|
|
redis:
|
|
restart: unless-stopped
|
|
image: redis:7-alpine
|
|
networks:
|
|
- internal_network
|
|
volumes:
|
|
- redis-data:/data
|
|
healthcheck:
|
|
test: "redis-cli ping"
|
|
interval: 5s
|
|
retries: 20
|
|
|
|
db:
|
|
restart: unless-stopped
|
|
image: postgres:15-alpine
|
|
networks:
|
|
- internal_network
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: misskey
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
|
|
interval: 5s
|
|
retries: 20
|
|
|
|
volumes:
|
|
postgres-data:
|
|
redis-data:
|
|
node_modules:
|
|
|
|
networks:
|
|
internal_network:
|
|
internal: true
|
|
external_network:
|