-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
46 lines (42 loc) · 988 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
46 lines (42 loc) · 988 Bytes
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
42
43
44
45
46
services:
mailbaux:
image: ghcr.io/codeshelldev/mailbaux:latest
container_name: mailbaux
ports:
- "8070:8070"
environment:
DB_HOST: ${DB_HOST:-mongo:27017
DB_NAME: ${DB_NAME:-mailbaux}
DB_USER: ${DB_USER:-bauxer}
REDIS_HOST: ${REDIS_HOST:-redis:6379}
env_file:
- .env
depends_on:
- mongo
- redis
restart: unless-stopped
networks:
- mailbaux
mongo:
image: mongo:7
container_name: mailbaux-db
environment:
MONGO_INITDB_ROOT_USERNAME: ${DB_USER:-bauxer}
MONGO_INITDB_ROOT_PASSWORD: ${DB_PASSWORD}
MONGO_INITDB_DATABASE: ${DB_NAME:-mailbaux}
volumes:
- db:/data/db
networks:
- mailbaux
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: mailbaux-redis
command: ["redis-server", "--requirepass", "${REDIS_PASSWORD}"]
networks:
- mailbaux
restart: unless-stopped
networks:
mailbaux:
volumes:
db: