forked from eyermt/moss
-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (38 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
43 lines (38 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# MOSS - Background Services
#
# This file defines the background services required for the MOSS application,
# which are managed by Docker Compose. It sets up PostgreSQL for the database
# and Redis to serve as the Celery message broker and result backend.
#
# Environment variables are sourced from the `.env` file.
#
# Usage:
# - Start services: `docker compose up -d`
# - Stop services: `docker compose down`
#
name: moss
services:
postgres:
image: postgres:16
container_name: moss_postgres
volumes:
- moss_postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${POSTGRES_USER:-moss_user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-your_secure_password}
POSTGRES_DB: ${POSTGRES_DB:-moss_db}
ports:
- '127.0.0.1:${POSTGRES_PORT:-5432}:5432'
restart: unless-stopped
redis:
image: redis:7
container_name: moss_redis
volumes:
- moss_redis_data:/data
ports:
- '127.0.0.1:${REDIS_PORT:-6379}:6379'
restart: unless-stopped
volumes:
moss_postgres_data:
moss_redis_data: