-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
125 lines (116 loc) · 2.69 KB
/
compose.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
services:
db:
image: postgres:16
restart: always
ports:
- "54321:5432"
- "54321:5432"
environment:
POSTGRES_USER: taskem
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: taskem
volumes:
- db-data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis
restart: always
ports:
- "63798:6379"
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD}
command: redis-server --requirepass ${REDIS_PASSWORD}
volumes:
- redis-data:/data
healthcheck:
test: [ "CMD", "token-cli", "--raw", "incr", "ping" ]
interval: 10s
timeout: 5s
retries: 5
# smtp:
# image: ghcr.io/docker-mailserver/docker-mailserver:latest
# restart: unless-stopped
# listmonk:
# image: listmonk/listmonk:latest
# restart: unless-stopped
# depends_on:
# - db
# ports:
# - "9000:9000"
# command: [ sh, -c, "yes | ./listmonk --install --config=\"\" && ./listmonk" ]
# environment:
# LISTMONK_app__address: "0.0.0.0:9000"
# LISTMONK_app__admin_username: taskem
# LISTMONK_app__admin_password: taskem
# LISTMONK_db__host: db
# LISTMONK_db__port: 5432
# LISTMONK_db__user: taskem
# LISTMONK_db__password: taskem
# LISTMONK_db__database: taskem
# LISTMONK_db__ssl_mode: disable
# redis:
# image: redis
# restart: always
# ports:
# - 63798:6379
# healthcheck:
# test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
# interval: 10s
# timeout: 5s
# retries: 5
minio:
image: quay.io/minio/minio
restart: always
command: server /data --console-address ":9001"
ports:
- "12200:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: root
MINIO_ROOT_PASSWORD: password
MINIO_DOMAIN: minio
networks:
default:
aliases:
- users.minio
- teams.minio
rabbitmq:
image: rabbitmq:3.13.6-management
environment:
RABBITMQ_DEFAULT_USER: taskem
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD}
ports:
- "56721:5672"
- "8080:15672"
server:
env_file: .env
build:
context: .
dockerfile: apps/server/Dockerfile
target: final
depends_on:
- db
- redis
- minio
- rabbitmq
ports:
- "50051:50051"
notification:
env_file: .env
build:
context: .
dockerfile: apps/notification/Dockerfile
target: final
depends_on:
- db
- rabbitmq
ports:
- "50052:50052"
volumes:
db-data:
redis-data:
driver: local