mirror of
https://github.com/altstackHQ/altstack-data.git
synced 2026-04-17 21:53:12 +02:00
40 lines
1010 B
YAML
40 lines
1010 B
YAML
|
|
# -------------------------------------------------------------------------
|
|
# 🚀 Created and distributed by The AltStack
|
|
# 🌍 https://thealtstack.com
|
|
# -------------------------------------------------------------------------
|
|
|
|
|
|
services:
|
|
rocketchat:
|
|
image: registry.rocket.chat/rocketchat/rocket.chat:latest
|
|
container_name: rocketchat
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- mongo
|
|
ports:
|
|
- "3002:3000"
|
|
environment:
|
|
- MONGO_URL=mongodb://mongo:27017/rocketchat
|
|
- ROOT_URL=http://localhost:3002
|
|
- PORT=3000
|
|
|
|
mongo:
|
|
image: mongo:5.0
|
|
container_name: rocketchat-mongo
|
|
restart: unless-stopped
|
|
command: mongod --oplogSize 128 --replSet rs0 --storageEngine=wiredTiger
|
|
volumes:
|
|
- ./data/db:/data/db
|
|
|
|
mongo-init-replica:
|
|
image: mongo:5.0
|
|
container_name: mongo-init-replica
|
|
restart: unless-stopped
|
|
command: bash /init-replica.sh
|
|
depends_on:
|
|
- mongo
|
|
volumes:
|
|
- ./init-replica.sh:/init-replica.sh
|
|
|